Exemple #1
0
 /// <summary>Removes a listener from the list.</summary>
 /// <param name="listener">The listener to remove.</param>
 public void UnregisterListener(GameEventListenerBase listener) => _listeners.Remove(listener);
Exemple #2
0
 /// <summary>Adds a listener to the list.</summary>
 /// <param name="listener">The listener to add.</param>
 public void RegisterListener(GameEventListenerBase listener) => _listeners.Add(listener);