public void Stun(float duration) { if (canBeStunned) { movementInput.DisableInput(); stunTimer = duration; } }
void StartAttack() { if (canAttack) { prepareAttackTimer = attackTelegraphTime; canAttack = false; movementInput.DisableInput(); Debug.Log($"{gameObject.name} is preparing to attack."); } }