示例#1
0
 public void Jump()
 {
     if (body == BodyPosture.Crouch)
     {
         LookDown();
     }
     body = BodyPosture.Stand;
     if (Mathf.Abs(physics.GetVelocityX()) > 0)
     {
         if (physics.JumpHighVel())
         {
             timeUtils.FrameDelay(animManager.StartHighVelJumpAnim);
         }
     }
     else
     {
         if (physics.JumpLowVel())
         {
             timeUtils.FrameDelay(animManager.StartLowVelJumpAnim);
         }
     }
     AdaptColliderStanding();
 }