Exemplo n.º 1
0
        internal override void OnIncreaseScoreHit(IncreaseScoreType ist, double hpIncrease, HitObject h)
        {
            if (h == specialMovementNextFruit)
            {
                ResetMovementSpeed();
                specialMovementNextFruit = null;
            }

            if (ist == IncreaseScoreType.FruitTickTiny || hpIncrease <= 0)
            {
                return;
            }

            ResetMovementSpeed();

            //applies hyperdash
            checkDistanceToNextFruit(h as HitCircleFruits);

            WiimoteManager.Rumble(Player.KiaiActive ? 64 : 32);

            HpBar.KiBulge();

            if (HpBar.CurrentHp > 180)
            {
                HpBar.KiExplode();
            }
        }
Exemplo n.º 2
0
    void Start()
    {
        // wiiリモコン初期化処理
        WiimoteManager.FindWiimotes();
        _wmNum = (int)_type - 1;
        if (WiimoteManager.HasWiimote(_wmNum))
        {
            _wm = WiimoteManager.Wiimotes[_wmNum];
            _wm.InitWiiMotionPlus();
            _wm.Speaker.Init();
            int i = _wmNum + 1;
            _wm.SendPlayerLED(i == 1, i == 2, i == 3, i == 4);
            WiimoteManager.Rumble(_wmNum, false);
        }

        _playerManager.onDanceStart += () =>
        {
            _dance.Begin();
        };
    }