private void Escape() { _animator.SetTrigger("isTimeOut"); Invoke(nameof(DisableMole), 0.1f); StopCoroutine(TimeDown()); MoleEscaped?.Invoke(this); }
private void OnMoleEscaped(Mole mole) { MoleEscaped?.Invoke(mole); mole.MoleEscaped -= OnMoleEscaped; mole.MoleKilled -= OnMoleKilled; _currentMoles.Remove(mole); }