Beispiel #1
0
 private void StartScenario(TutorialScenario s)
 {
     currentScenario = s;
     GameMaster.realMaster.BindScenario(s);
     grcaster.enabled = !s.blockCanvasRaycaster;
     currentScenario.StartScenario();
 }
Beispiel #2
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);
     }
 }
Beispiel #3
0
 private void Start()
 {
     GameMaster.realMaster.PrepareColonyController(true);
     uicontroller = UIController.GetCurrent();
     mcc = uicontroller.GetMainCanvasController();
     grcaster = mcc.GetMainCanvasTransform().GetComponent<GraphicRaycaster>();
     //
     GameConstants.DisableTutorialNote();
     TutorialScenario.Initialize(this, mcc);
     outerProceedButton.GetComponentInChildren<Text>().text = Localization.GetWord(LocalizedWord.Continue);
     StartScenario(TutorialScenario.GetScenario(0));
 }