public override void init() { beginloading.instance = this; this.text = base.getTransformByPath("Text").GetComponent <Text>(); bool flag = Baselayer.cemaraRectTran == null; if (flag) { Baselayer.cemaraRectTran = GameObject.Find("canvas_main").GetComponent <RectTransform>(); } RectTransform cemaraRectTran = Baselayer.cemaraRectTran; RectTransform component = base.getTransformByPath("bg").GetComponent <RectTransform>(); component.sizeDelta = new Vector2(cemaraRectTran.rect.width, cemaraRectTran.rect.height); }
//void Start() //{ // instance = this; // text = this.getTransformByPath("Text").GetComponent<Text>(); //} public override void init() { instance = this; text = this.getTransformByPath("Text").GetComponent <Text>(); // setText(uiData[0] as string); if (cemaraRectTran == null) { cemaraRectTran = GameObject.Find("canvas_main").GetComponent <RectTransform>(); } RectTransform cv = cemaraRectTran; RectTransform bg = this.getTransformByPath("bg").GetComponent <RectTransform>(); bg.sizeDelta = new Vector2(cv.rect.width, cv.rect.height); getComponentByPath <Text>("Text").text = ContMgr.getCont("beginloading_0"); }
public override void dispose() { instance = null; base.dispose(); }
public override void dispose() { beginloading.instance = null; base.dispose(); }