public void PlayGame() { if (playTutorial) { if (AsyncToggle.loadAsynchronously) { asyncTutorialScene.LoadScene(); System.Threading.Thread.Sleep(100); asyncHubWorldScene.KillScene(); } else { SceneTransitionManager.ChangeScenes(Scenes.TutorialScene); } } else { if (AsyncToggle.loadAsynchronously) { asyncTutorialScene.KillScene(); asyncHubWorldScene.LoadScene(); } else { SceneTransitionManager.ChangeScenes(Scenes.HubWorldScene); } } }
public void LoadQuitScene() { hubWorldAsync.KillScene(); endGameAsync.LoadScene(); mainMenuAsync.KillScene(); }