private void Start() { AnotherEvetnListener l_list = new AnotherEvetnListener(); EventQueueListener.registerEvent(EventQueueListener.UniqueInstance, l_list); EventQueue.enqueueEvent(EventQueueContainer.TurnTimelineQueue, new AnotherEvent()); EventQueueContainer.iterate(); EventQueueListener.unRegisterEvent(EventQueueListener.UniqueInstance, l_list); EventQueue.enqueueEvent(EventQueueContainer.TurnTimelineQueue, new AnotherEvent()); EventQueueContainer.iterate(); }
private void Update() { float delta = Time.deltaTime; MyEvent.broadcast(ref ExternalHooks.OnTickStartEvent); EventQueueContainer.iterate(); List <GameLoopCallback> l_tickCallbacks = GameSequencer[GameLoopHook.Tick]; for (int i = 0; i < l_tickCallbacks.Count; i++) { l_tickCallbacks[i].Callback(delta); } EventQueueContainer.iterate(); }