Пример #1
0
 public void RegisterListener(GameEventWithIntListener listener)
 {
     if (!_listeners.Contains(listener))
     {
         _listeners.Add(listener);
     }
     else
     {
         Debug.LogWarning("Listener re-registered to event");
     }
 }
Пример #2
0
 public void UnregisterListener(GameEventWithIntListener listener)
 {
     _listeners.Remove(listener);
 }