public void Initialize(IEventNotifier notifier) {
     notifier.OnEvent<EntityAddedEvent>(evnt => {
         OnEntityCreated(evnt.Entity);
     });
     notifier.OnEvent<EntityRemovedEvent>(evnt => {
         OnEntityDestroyed(evnt.Entity);
     });
     notifier.OnEvent<AddedDataEvent>(OnDataAdded);
     notifier.OnEvent<RemovedDataEvent>(OnDataRemoved);
 }
 public void Initialize(IEventNotifier notifier)
 {
     notifier.OnEvent <EntityAddedEvent>(evnt => {
         OnEntityCreated(evnt.Entity);
     });
     notifier.OnEvent <EntityRemovedEvent>(evnt => {
         OnEntityDestroyed(evnt.Entity);
     });
     notifier.OnEvent <AddedDataEvent>(OnDataAdded);
     notifier.OnEvent <RemovedDataEvent>(OnDataRemoved);
 }