public void OnClickPlay() { // Unload the title scene. GameStateLoader.UnloadSceneAsync("title"); // Load the game scene. GameStateLoader.LoadSceneAsync("game"); }
public void OnClickResume() { // Resume. Resume(); // Unload the pause scene. GameStateLoader.UnloadSceneAsync("pause-menu"); }
public void OnClickMenu() { // Resume. Resume(); // Quit to the main menu. GameStateLoader.UnloadSceneAsync("pause-menu"); GameStateLoader.UnloadSceneAsync("game"); GameStateLoader.LoadSceneAsync("title"); }