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 LoadMainMenu() { hubWorldAsync.KillScene(); endGameAsync.KillScene(); mainMenuAsync.LoadScene(); }