void LaunchTutorial()
 {
     loadingScreen.ShowAndDo(() =>
     {
         scenes.RestartAndLoadTutorial();
     });
 }
Ejemplo n.º 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));
            });
        }
    }
Ejemplo n.º 3
0
 void LaunchTutorial()
 {
     sceneController.RestartAndLoadTutorial();
 }