Exemple #1
0
        public override void init()
        {
            this.con = base.getTransformByPath("con");
            this.tab = new TabControl();
            this.tab.onClickHanle = new Action <TabControl>(this.OnSwitch);
            this.tab.create(base.getGameObjectByPath("tab"), base.gameObject, 0, 0, false);
            BaseButton baseButton = new BaseButton(base.getTransformByPath("close"), 1, 1);

            baseButton.onClick = new Action <GameObject>(this.OnClose);
            this.CheckLock();
            a3_yiling.instance = this;
        }
        public override void init()
        {
            con = getTransformByPath("con");

            tab = new TabControl();
            tab.onClickHanle = OnSwitch;
            tab.create(getGameObjectByPath("tab"), this.gameObject);

            BaseButton closeBtn = new BaseButton(getTransformByPath("close"));

            closeBtn.onClick = OnClose;
            CheckLock();
            instance = this;
        }