예제 #1
0
 void Jump()
 {
     if (!isJumping)
     {
         if (Time.timeSinceLevelLoad > jumpT)
         {
             AudioController.Play("pug_jump2");
             isMoving  = false;
             isJumping = true;
             EndLeft();
             EndRight();
             jumpClip.stop();
             MotionTracker.instance.TrackMotion(this, Motion.Jump);
             jumpT += jumpClip.duration();
             animator.SetTrigger("Jump");
             jumpClip.gotoAndPlay(0);
         }
     }
 }