void LaunchTutorial() { loadingScreen.ShowAndDo(() => { scenes.RestartAndLoadTutorial(); }); }
void OnTemplateClicked(BuiltInTemplateInfo template) { string fullPath = Path.Combine(Application.streamingAssetsPath, "ExampleGames", "Public", template.baseFileName + ".voos"); if (template.isTutorial) { loadingScreen.ShowAndDo(() => sceneController.RestartAndLoadTutorial()); } else { popups.AskHowToPlay(playOpts => { var gameOpts = new GameBuilderApplication.GameOptions { playOptions = playOpts }; loadingScreen.ShowAndDo(() => sceneController.RestartAndLoad(fullPath, gameOpts)); }); } }
void LaunchTutorial() { sceneController.RestartAndLoadTutorial(); }