//----------------- public MainCanvasController GetMainCanvasController() { if (mainCanvasController == null) { mainCanvasController = Instantiate(Resources.Load <GameObject>("UIPrefs/MainCanvasController"), transform).GetComponent <MainCanvasController>(); mainCanvasController.Initialize(this); } return(mainCanvasController); }
public static void Initialize(TutorialUI i_tutorialUI, MainCanvasController i_mcc) { tutorialUI = i_tutorialUI; mcc = i_mcc; if (localizer == null) { localizer = new Localizer(); } }
void Start() { uic = UIController.GetCurrent(); mcc = uic.GetMainCanvasController(); //testWindow = Instantiate(Resources.Load<RectTransform>("UIPrefs/ExpeditionPanel"), holder); // Destroy(testWindow.GetComponent<UIExpeditionObserver>()); //SetPosition(); }
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)); }
private void Awake() { myCanvas = GetComponent <Canvas>(); canvasEnabled = myCanvas.enabled; announcePanel.SetActive(false); blockmask.SetActive(false); specialButton.SetActive(false); infoString0.transform.parent.gameObject.SetActive(false); infoString0_enabled = false; foreach (var cw in conditionWindows) { cw.gameObject.SetActive(false); } var uic = UIController.GetCurrent(); uic.AddSpecialCanvasToHolder(transform); mcc = uic.GetMainCanvasController(); maincanvas_rightpanel = mcc.rightPanel; }
public static void LinkToMainCanvasController(MainCanvasController mcc) { mycanvas = mcc; }
public void Setup() { Obj = this; }
public WinState(LevelState levelState, Level level) { previousLevelState = levelState; mainCanvasController = levelState.Manager.mainCanvasController; previousLevel = level; }
private void Start() { // если присваивать myCanvas в Awake, то все ломается myCanvas = UIController.GetCurrent().GetMainCanvasController(); }