Пример #1
0
 private void ToggleMenu()
 {
     if (SceneLoader.instance.IsMenuSceneActive() && SceneLoader.instance.IsThereAnotherLiveScene())
     {
         SceneLoader.instance.CloseOptionsMenu();
         pause.TogglePause(false);
     }
     else
     {
         pause.TogglePause(true);
         SceneLoader.instance.LoadOptionsMenu();
     }
 }
Пример #2
0
 public void LoadGameScene()
 {
     if (gameScene.isLoaded)
     {
         SetActiveScene(gameScene, true);
         UpdateListeners(gameScene);
     }
     else
     {
         UnloadAllOtherGameplayScenes(gameScene);
         StartCoroutine(LoadNewSceneAdditive(gameScene, true, true));
     }
     pause.TogglePause(false);
     UnloadScene(menuScene);
 }