Exemplo n.º 1
0
 private void UnsubscribeAllCloseEvents()
 {
     foreach (var e in closeEvents)
     {
         EventManager_Window.Unsubscribe(e, Close_Handler);
         EventManager_Gameplay.Unsubscribe(e, Close_Handler);
         EventManager.Unsubscribe(e, Close_Handler);
     }
 }
Exemplo n.º 2
0
 protected virtual void UnsubscribeStart(string type)
 {
     if (useEventManager)
     {
         EventManager.Unsubscribe(type, Handler_StartAudioEvent);
     }
     if (useAudioEventManager)
     {
         EventManager_Audio.Unsubscribe(type, Handler_StartAudioEvent);
     }
     if (useInputEventManager)
     {
         EventManager_Input.Unsubscribe(type, Handler_StartAudioEvent);
     }
     if (useWindowEventManager)
     {
         EventManager_Window.Unsubscribe(type, Handler_StartAudioEvent);
     }
     if (useGameplayEventManager)
     {
         EventManager_Gameplay.Unsubscribe(type, Handler_StartAudioEvent);
     }
 }
Exemplo n.º 3
0
 protected override void OnDestroy()
 {
     EventManager_Window.Unsubscribe(EventManager_Window.WINDOW_OPENED, Handler_WindowOpened);
     EventManager_Window.Unsubscribe(EventManager_Window.WINDOW_CLOSED, Handler_WindowClosed);
     base.OnDestroy();
 }