Exemple #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;
 }
Exemple #2
0
 private void ChangeSpeed(float newspeed)
 {
     sc.speed = newspeed;
     sc.ChangeSpeed();
 }
Exemple #3
0
 public void TweenSpeed(float x)
 {
     sc.speed = x;
     sc.ChangeSpeed();
 }