Пример #1
0
 void OnDestroy()
 {
     if (FocusCoord.DoesExist())
     {
         FocusCoord.instance.SignalCoordChange -= OnFocusCoordChange;
     }
 }
Пример #2
0
    void OnDestroy()
    {
        if (FocusCoord.DoesExist())
        {
            FocusCoord.instance.SignalCoordChange -= OnFocusCoordChange;
        }

        if (Metronome.DoesExist())
        {
            Metronome.instance.SignalBeatImmediate -= OnBeat;
        }
    }