示例#1
0
 public override void init()
 {
     a3_getJewelryWay.instance = this;
     this.btn_close            = new BaseButton(base.transform.FindChild("btn_close"), 1, 1);
     this.btn_close.onClick    = new Action <GameObject>(this.onBtnCloseClick);
     this.mwlr_bt         = new BaseButton(base.getTransformByPath("cells/scroll/content/mwlr/go"), 1, 1);
     this.mwlr_bt.onClick = new Action <GameObject>(this.mwlr_go);
     this.jjc_bt          = new BaseButton(base.getTransformByPath("cells/scroll/content/jjc/go"), 1, 1);
     this.jjc_bt.onClick  = new Action <GameObject>(this.jjc_go);
     this.dgsl_bt         = new BaseButton(base.getTransformByPath("cells/scroll/content/dgsl/go"), 1, 1);
     this.dgsl_bt.onClick = new Action <GameObject>(this.dgsl_go);
     this.cs_mwlr         = base.getTransformByPath("cells/scroll/content/mwlr/name/dj").GetComponent <Text>();
     this.cs_jjc          = base.getTransformByPath("cells/scroll/content/jjc/name/dj").GetComponent <Text>();
     this.cs_dgsl         = base.getTransformByPath("cells/scroll/content/dgsl/name/dj").GetComponent <Text>();
 }
        public override void init()
        {
            instance = this;
            inText();
            btn_close         = new BaseButton(transform.FindChild("btn_close"));
            btn_close.onClick = onBtnCloseClick;

            mwlr_bt         = new BaseButton(getTransformByPath("cells/scroll/content/mwlr/go"));
            mwlr_bt.onClick = mwlr_go;
            jjc_bt          = new BaseButton(getTransformByPath("cells/scroll/content/jjc/go"));
            jjc_bt.onClick  = jjc_go;
            dgsl_bt         = new BaseButton(getTransformByPath("cells/scroll/content/dgsl/go"));
            dgsl_bt.onClick = dgsl_go;
            cs_mwlr         = getTransformByPath("cells/scroll/content/mwlr/name/dj").GetComponent <Text>();
            cs_jjc          = getTransformByPath("cells/scroll/content/jjc/name/dj").GetComponent <Text>();
            cs_dgsl         = getTransformByPath("cells/scroll/content/dgsl/name/dj").GetComponent <Text>();
        }