示例#1
0
 public void UnregisterListener(GenericGameEventListener <T> listener)
 {
     if (this._eventListeners.Contains(listener))
     {
         this._eventListeners.Remove(listener);
     }
 }
示例#2
0
 public void RegisterListener(GenericGameEventListener <T> listener)
 {
     if (!this._eventListeners.Contains(listener))
     {
         this._eventListeners.Add(listener);
     }
 }