Example #1
0
    private void Escape()
    {
        _animator.SetTrigger("isTimeOut");
        Invoke(nameof(DisableMole), 0.1f);
        StopCoroutine(TimeDown());

        MoleEscaped?.Invoke(this);
    }
Example #2
0
    private void OnMoleEscaped(Mole mole)
    {
        MoleEscaped?.Invoke(mole);

        mole.MoleEscaped -= OnMoleEscaped;
        mole.MoleKilled  -= OnMoleKilled;

        _currentMoles.Remove(mole);
    }