Example #1
0
 /// <summary>
 /// Adds a listener for this event
 /// </summary>
 /// <param name="listener">Listener</param>
 public void AddListener(InputEventFired listener)
 {
     _listeners.Add(listener);
 }
Example #2
0
 /// <summary>
 /// Removes a listener for this event
 /// </summary>
 /// <param name="listener">Listener</param>
 /// <returns>Returns true if the listener is removed otherwise false</returns>
 public bool RemoveListener(InputEventFired listener)
 {
     return _listeners.Remove(listener);
 }