Exemplo n.º 1
0
 protected virtual void Awake()
 {
     EventManager_Input.Subscribe(EventManager_Input.BLOCK_HUD, BlockHUD);
     EventManager_Input.Subscribe(EventManager_Input.UNBLOCK_HUD, UnblockHUD);
     EventManager_Input.Subscribe(EventManager_Input.HIDE_HUD, HideHUD);
     EventManager_Input.Subscribe(EventManager_Input.SHOW_HUD, ShowHUD);
 }
Exemplo n.º 2
0
 protected override void OnDestroy()
 {
     EventManager_Input.Unsubscribe(EventManager_Input.BLOCK_HUD, BlockHUD);
     EventManager_Input.Unsubscribe(EventManager_Input.UNBLOCK_HUD, UnblockHUD);
     EventManager_Input.Unsubscribe(EventManager_Input.HIDE_HUD, HideHUD);
     EventManager_Input.Unsubscribe(EventManager_Input.SHOW_HUD, ShowHUD);
     base.OnDestroy();
 }
Exemplo n.º 3
0
 protected override void CloseAnimationStateCloseHandler()
 {
     base.CloseAnimationStateCloseHandler();
     if (blockInputWhileOpened)
     {
         EventManager_Input.Notify(this, new GameEventArgs(EventManager_Input.UNBLOCK_INPUT));
     }
 }
Exemplo n.º 4
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.º 5
0
 protected virtual void SubscribeStop(string type)
 {
     if (useEventManager)
     {
         EventManager.Subscribe(type, Handler_StopAudioEvent);
     }
     if (useAudioEventManager)
     {
         EventManager_Audio.Subscribe(type, Handler_StopAudioEvent);
     }
     if (useInputEventManager)
     {
         EventManager_Input.Subscribe(type, Handler_StopAudioEvent);
     }
     if (useWindowEventManager)
     {
         EventManager_Window.Subscribe(type, Handler_StopAudioEvent);
     }
     if (useGameplayEventManager)
     {
         EventManager_Gameplay.Subscribe(type, Handler_StopAudioEvent);
     }
 }
Exemplo n.º 6
0
 private void Awake()
 {
     EventManager_Input.Subscribe(EventManager_Input.BLOCK_INPUT, OnBlockInput_Handler);
     EventManager_Input.Subscribe(EventManager_Input.UNBLOCK_INPUT, OnUnblockInput_Handler);
 }