예제 #1
0
 /// <summary> Removes a listener to this GameEvent. </summary>
 /// <param name="listener"> Listener to remove. </param>
 public virtual void Unregister(GameEventListener_Float listener)
 {
     if (listeners.Contains(listener))
     {
         listeners.Remove(listener);
     }
 }
예제 #2
0
 /// <summary> Adds a listener to this GameEvent. </summary>
 /// <param name="listener"> Listener to add. </param>
 public virtual void Register(GameEventListener_Float listener)
 {
     if (!listeners.Contains(listener))
     {
         listeners.Add(listener);
     }
 }