Пример #1
0
 public void Stun(float duration)
 {
     if (canBeStunned)
     {
         movementInput.DisableInput();
         stunTimer = duration;
     }
 }
Пример #2
0
 void StartAttack()
 {
     if (canAttack)
     {
         prepareAttackTimer = attackTelegraphTime;
         canAttack          = false;
         movementInput.DisableInput();
         Debug.Log($"{gameObject.name} is preparing to attack.");
     }
 }