private void TransitionToMainMenu()
 {
     if (!SceneExtension.IsThisSceneActive(SceneExtension.MenuUiSceneName))
     {
         StartCoroutine(SceneExtension.ForceMenuSceneSequence(true));
     }
 }
Esempio n. 2
0
        private void Initialize()
        {
            Log("Initialize");
#if UNITY_EDITOR
            AudioController.Instance.PlayAudio(AudioType.St01, true, 1f);
#else
            AudioController.Instance.PlayAudio(AudioType.St01);
            StartCoroutine(SceneExtension.ForceMenuSceneSequence());
#endif
        }
Esempio n. 3
0
 public void ReturnToMenu()
 {
     if (isMainMenuActive)
     {
         return;
     }
     GameManager.HardReset();
     StartCoroutine(SceneExtension.ForceMenuSceneSequence(
                        true, true, true, lastSceneBuildIndex));
     isMainMenuActive = true;
 }