예제 #1
0
 public States Main_InThrow(GroundType groundType, States currentState)
 {
     if (groundType != GroundType.AIR)
     {
         return(States.IDLE);
     }
     if (command.MoveLeft()) // move key
     {
         mechanics.MoveLeft_Air();
     }
     else if (command.MoveRight()) //move key
     {
         mechanics.MoveRight_Air();
     }
     return(currentState);
 }
예제 #2
0
    public States Air_Idle(States currentState)
    {
        if (command.MoveLeft()) //GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed

        {
            if (command.MoveLeft()) // move key
            {
                mechanics.MoveLeft_Air();
            }
            else if (command.MoveRight()) //move key
            {
                mechanics.MoveRight_Air();
            }
        }

        return(currentState);
    }