public void Idle() { if ((velocity.X < ValueHolder.rightMarioIdlingRange.X && velocity.X > ValueHolder.leftMarioIdlingRange.X) && (velocity.Y < ValueHolder.rightMarioIdlingRange.Y && velocity.Y > ValueHolder.leftMarioIdlingRange.Y) && !isFalling) { state.Idle(); isCrouch = false; } }
public void Idle() { if (!IsInSpecialAnimationState()) { state.Idle(); marioDirection = MarioDirection.NONE; if (isJumping) { isJumping = false; isFalling = true; } } }