Exemple #1
0
    // Carries out the scene change if required
    public void LoadDelayed()
    {
        //Pause button now works if escape is pressed since we are no longer in Main menu.
        inMainMenu = false;

        //Hide the main menu UI element
        showPanels.HideMenu();
        showPanels.HideStoryPanelImmediate();
        //sfScene.SetActive(false);

        //Load the selected scene, by scene index number in build settings
        SceneManager.LoadScene(sceneToStart);
    }