Пример #1
0
 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;
     }
 }
Пример #2
0
 public void Idle()
 {
     if (!IsInSpecialAnimationState())
     {
         state.Idle();
         marioDirection = MarioDirection.NONE;
         if (isJumping)
         {
             isJumping = false;
             isFalling = true;
         }
     }
 }