Пример #1
0
 /// <summary>Removes a listener from the list.</summary>
 /// <param name="listener">The listener to remove.</param>
 public void UnregisterListener(GameEventListenerBase listener)
 {
     this.listeners.Remove(listener);
 }
Пример #2
0
 /// <summary>Adds a listener to the list.</summary>
 /// <param name="listener">The listener to add.</param>
 public void RegisterListener(GameEventListenerBase listener)
 {
     this.listeners.Add(listener);
 }