Example #1
0
 public virtual void RemoveListener(GameEventListenerBase <T> listener)
 {
     if (eventListeners.Contains(listener))
     {
         eventListeners.Remove(listener);
     }
 }
Example #2
0
 public virtual void AddListener(GameEventListenerBase <T> listener)
 {
     if (!eventListeners.Contains(listener))
     {
         eventListeners.Add(listener);
     }
 }