示例#1
0
 // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     oldspeed = sc.speed;
     sc.speed = 0f;
     sc.ChangeSpeed();
     os.pause        = true;
     dc.isGettingHit = true;
 }
示例#2
0
 private void ChangeSpeed(float newspeed)
 {
     sc.speed = newspeed;
     sc.ChangeSpeed();
 }
示例#3
0
 public void TweenSpeed(float x)
 {
     sc.speed = x;
     sc.ChangeSpeed();
 }