/// <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); } }
/// <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); } }