// 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); } }
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)); }