private void ToggleMenu() { if (SceneLoader.instance.IsMenuSceneActive() && SceneLoader.instance.IsThereAnotherLiveScene()) { SceneLoader.instance.CloseOptionsMenu(); pause.TogglePause(false); } else { pause.TogglePause(true); SceneLoader.instance.LoadOptionsMenu(); } }
public void LoadGameScene() { if (gameScene.isLoaded) { SetActiveScene(gameScene, true); UpdateListeners(gameScene); } else { UnloadAllOtherGameplayScenes(gameScene); StartCoroutine(LoadNewSceneAdditive(gameScene, true, true)); } pause.TogglePause(false); UnloadScene(menuScene); }