示例#1
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));
 }
示例#2
0
    //  REQUESTS
    public Transform GetCurrentCanvasTransform()
    {
        switch (currentMode)
        {
        case UIMode.ExploringMinigame: return(exploringMinigameController.GetMainCanvasTransform());

        case UIMode.GlobalMap: return(globalMapCanvasController.GetMainCanvasTransform());

        case UIMode.KnowledgeTab: return(knowledgeTabUI.GetMainCanvasTransform());

        case UIMode.Editor: return(editorCanvasController.GetMainCanvasTransform());

        default: return(mainCanvasController?.GetMainCanvasTransform());
        }
    }