Пример #1
0
    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();
    }
Пример #2
0
 private void Awake()
 {
     EventQueueListener.registerEvent(EventQueueListener.UniqueInstance, new OnStartTurnEvent());
 }