protected override void BackButtonWasPressed(ViewController topViewController)
        {
            BeatSaberUI.MainFlowCoordinator.DismissFlowCoordinator(this);
            canvasUtility.ClearAllText();

            vrInputModule.gameObject.SetActive(true);

            // This took a long time to figure out.
            if (mainSettings.screenDisplacementEffectsEnabled)
            {
                menuShockwave.gameObject.SetActive(true);
            }

            // Return back to the main menu.
            gameScenesManager.PopScenes(0.25f, null, (_) =>
            {
                // Unmark these scenes as persistent so they won't bother us in-game.
                persistentScenes.Remove("MenuViewControllers");
                persistentScenes.Remove("MenuCore");
                persistentScenes.Remove("Menu");
                fadeInOutController.FadeIn();
                songPreviewPlayer.CrossfadeToDefault();
            });
        }
Example #2
0
 protected override void BackButtonWasPressed(ViewController topViewController)
 {
     SetMainScreenOffset(Vector3.zero);
     BeatSaberUI.MainFlowCoordinator.DismissFlowCoordinator(this);
     canvasUtility.ClearAllText();
 }