Example #1
0
 public void SelfKnockback(float f)
 {
     //Debug.Log("selfknock called");
     knockbackInProgress = true;
     knockbackPower      = f;
     knockbackTimer.Restart();
     if (stunInProgress)
     {
         stunWaiting = true;
     }
     if (slowInProgress)
     {
         slowWaiting = true;
     }
     stunInProgress = false;
     slowInProgress = false;
     steering.Knockback(f);
 }