コード例 #1
0
 //空中跳
 void _JumpInTheSky(float speed, bool isMultijump)
 {
     //空中跳板动画
     if (isMultijump)
     {
         _animator.DoubleJumpEffect(transform.position);
     }
     //print("空中跳");
     remainJumpTimes--;
     readyJump = false;
     //执行跳
     role.state       = RoleState.Raising;
     jumpInstantSpeed = speed * 1f;
 }