Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        //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");
        }
Ejemplo n.º 3
0
 public override void dispose()
 {
     instance = null;
     base.dispose();
 }
Ejemplo n.º 4
0
 public override void dispose()
 {
     beginloading.instance = null;
     base.dispose();
 }