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 Awake() { EventQueueListener.registerEvent(EventQueueListener.UniqueInstance, new OnStartTurnEvent()); }