private void QuickHealing() { if (Time.time >= _healingTimer) { _healingTimer = Time.time + 1.5f; var healingCommand = new HealingCommand(enemy, enemy.healingPower); healingCommand.Execute(); } }
private void IdleHealing() { if (Time.time < _timerHeal && !owner.StatusController.CheckCurrentHealthToLimit(HealthStatus.MaxHealth)) { return; } _timerHeal = Time.time + 5f; var healingCommand = new HealingCommand(enemy, enemy.healingPower); healingCommand.Execute(); }