Пример #1
0
 private void SubscribeAllCloseEvents()
 {
     foreach (var e in closeEvents)
     {
         EventManager_Window.Subscribe(e, Close_Handler);
         EventManager_Gameplay.Subscribe(e, Close_Handler);
         EventManager.Subscribe(e, Close_Handler);
     }
 }
Пример #2
0
 protected virtual void SubscribeStart(string type)
 {
     if (useEventManager)
     {
         EventManager.Subscribe(type, Handler_StartAudioEvent);
     }
     if (useAudioEventManager)
     {
         EventManager_Audio.Subscribe(type, Handler_StartAudioEvent);
     }
     if (useInputEventManager)
     {
         EventManager_Input.Subscribe(type, Handler_StartAudioEvent);
     }
     if (useWindowEventManager)
     {
         EventManager_Window.Subscribe(type, Handler_StartAudioEvent);
     }
     if (useGameplayEventManager)
     {
         EventManager_Gameplay.Subscribe(type, Handler_StartAudioEvent);
     }
 }
Пример #3
0
 private void Start()
 {
     EventManager_Window.Subscribe(EventManager_Window.WINDOW_OPENED, Handler_WindowOpened);
     EventManager_Window.Subscribe(EventManager_Window.WINDOW_CLOSED, Handler_WindowClosed);
 }