Exemplo n.º 1
0
        private void UnPauseHidden()
        {
            if (TimelineManager.Instance() && TimelineManager.playing)
            {
                return;
            }

            pause          = false;
            Time.timeScale = pause ? 0 : 1;
        }
Exemplo n.º 2
0
 private void PauseButton()
 {
     if (TimelineManager.playing)
     {
         TimelineManager.Instance().SkipScene();
     }
     else
     {
         Pause();
     }
 }
Exemplo n.º 3
0
        private void Start()
        {
            pauseDelayed     = pause;
            Cursor.visible   = false;
            Cursor.lockState = CursorLockMode.Locked;
            messageText.canvasRenderer.SetAlpha(0);

            TimelineManager.Instance().onStart     += PauseHidden;
            TimelineManager.Instance().onEnd       += UnPauseHidden;
            InputManager.Instance().onPause        += PauseButton;
            InputManager.Instance().onHide         += Hide;
            SaveLoad.Instance().onProcessingUpdate += SaveLoadPause;
        }
Exemplo n.º 4
0
        private void OnDisable()
        {
            if (InputManager.Instance(true))
            {
                InputManager.Instance().onPause -= PauseButton;
                InputManager.Instance().onHide  -= Hide;
            }

            if (TimelineManager.Instance(true))
            {
                TimelineManager.Instance(true).onStart -= PauseHidden;
                TimelineManager.Instance(true).onEnd   -= UnPauseHidden;
            }
            if (SaveLoad.Instance(true))
            {
                SaveLoad.Instance().onProcessingUpdate -= SaveLoadPause;
            }
        }