Example #1
0
 //
 public void NextScenario()
 {
     //endscenario
     if (outerProceedButton.activeSelf) outerProceedButton.SetActive(false);
     timer = 0f;
     if (framedElement != null) DisableShowframe();         
     if (showArrow.gameObject.activeSelf) showArrow.gameObject.SetActive(false);
     if (!grcaster.enabled) grcaster.enabled = true;
     mcc.ChangeChosenObject(ChosenObjectType.None);
     //
     if (currentScenario.step != TutorialStep.UpgradeHQ)
     {
         var nextStep = currentScenario.step + 1;
         StartScenario(TutorialScenario.GetScenario(nextStep));
     }
     else
     {
         GameMaster.realMaster.ChangePlayMode(GameStartSettings.GetModeChangingSettings(GameMode.Survival, Difficulty.Easy, StartFoundingType.Nothing));
         var qs = currentScenario.DefineQuestSection();
         if (qs == QuestSection.Endgame) mcc.questUI.BlockQuestPosition(qs);
         GameMaster.realMaster.UnbindScenario(currentScenario);
         currentScenario = null;
         Destroy(gameObject);
     }
 }
 public void PlayWithThisTerrain()
 {
     if (visualBorderDrawn)
     {
         GameMaster.realMaster.mainChunk.HideBorderLine();
     }
     GameMaster.realMaster.SaveTerrain("lastCreatedTerrain");
     GameMaster.realMaster.ChangePlayMode(GameStartSettings.GetModeChangingSettings(GameMode.Survival, Difficulty.Normal, StartFoundingType.Zeppelin));
 }