// // End Game: Return to menu // void ReturnButtonPress() { // Debug.Log ("ReturnButton Pressed. Return to menu"); // Add score to database ScoreBoard.myList.Add(weightedScore); ScoreBoard.SortList(); LevelControl.AddExperience(weightedScore); print("WeightedScore: " + weightedScore); // Load menu UnityEngine.SceneManagement.SceneManager.LoadScene("Menu", UnityEngine.SceneManagement.LoadSceneMode.Single); }
// // End Game: Return to menu // void ReturnButtonPress() { // Debug.Log ("ReturnButton Pressed. Return to menu"); // Add score to database chooseMode.setGameMode = GameType; ScoreBoard.Add(weightedScore, GameType); LevelControl.AddExperience(weightedScore, GameType); GameType = null; // print("WeightedScore: " + weightedScore); // Load menu UnityEngine.SceneManagement.SceneManager.LoadScene("Menu", UnityEngine.SceneManagement.LoadSceneMode.Single); }