private STATENAME GetStateWhenPushStick()
 {
     if (gamepad.IsPush(Button.D) && CharacterDashMoveState.IsParmittion(parameter.stamina))
     {
         return(STATENAME.DashMove);
     }
     return(STATENAME.Move);
 }
Exemplo n.º 2
0
        virtual protected STATENAME CheckOfKey()
        {
            Stick st = gamepad.pushStick;

            if (st == Stick.None)
            {
                return(STATENAME.Stay);
            }

            if (gamepad.GetChargeButton != null)
            {
                return(STATENAME.Charge);
            }

            SetDirectionByStick(st);

            if (gamepad.IsPush(Button.D) && CharacterDashMoveState.IsParmittion(parameter.stamina))
            {
                return(STATENAME.DashMove);
            }

            return(STATENAME.Changeless);
        }