public void Subscribe(TSceneObject sceneObject) { if (sceneObjects.Add(sceneObject)) { SubscriberAdded?.Invoke(sceneObject); } }
public void AddSubscriber(ISceneObject sceneObject) { if (subscribers.Add(sceneObject)) { SubscriberAdded?.Invoke(sceneObject); } }