void LaunchTutorial()
 {
     loadingScreen.ShowAndDo(() =>
     {
         scenes.RestartAndLoadTutorial();
     });
 }
예제 #2
0
    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));
            });
        }
    }
예제 #3
0
 void LaunchTutorial()
 {
     sceneController.RestartAndLoadTutorial();
 }