public void UnregisterListener(GameObjectGameEventListener listener) { if (this._gameObjectListeners.Contains(listener)) { this._gameObjectListeners.Remove(listener); } else { Debug.LogWarning("Attempting to unregister listener of " + listener.name + " but it is not present"); } }
public void RegisterListener(GameObjectGameEventListener listener) { if (!this._gameObjectListeners.Contains(listener)) { this._gameObjectListeners.Add(listener); } else { Debug.LogWarning("Attempting to register listener of " + listener.name + " but it is already present"); } }
public void UnRegisterListener(GameObjectGameEventListener listener) { listeners.Remove(listener); }
public void RegisterListener(GameObjectGameEventListener listener) { listeners.Add(listener); }