예제 #1
0
    private void Die()
    {
        gameObject.SetActive(false);
        StopCoroutine(TimeDown());

        MoleKilled?.Invoke(this);
    }
예제 #2
0
    private void OnMoleKilled(Mole mole)
    {
        MoleKilled?.Invoke(mole);

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

        _currentMoles.Remove(mole);
    }