Ejemplo n.º 1
0
    // Function to return to main menu
    public void ReturnToMainMenu()
    {
        // Reset the static class's data so a new case can be fetched on the next entry
        CaseInformation.ResetCaseInformation();

        // Return Player to Main Menu
        SceneManager.LoadScene("MainMenu");
    }
    // Button handler functions
    #region ButtonHandlers

    // Function to return to main menu
    public void ContinueButtonHandler()
    {
        // Reset the static player data so the next entry into
        // the Play loop is a clean slate
        CaseInformation.ResetCaseInformation();

        SceneManager.LoadScene("MainMenu");
    }