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); }
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); }