Exemplo n.º 1
0
        public override void onShowed()
        {
            this.isfree = (ModelBase <PlayerModel> .getInstance().vip >= 3u);
            this.xml    = XMLMgr.instance.GetSXML("mappoint.p", "id==" + worldmapsubwin.id);
            this.vmap   = SvrMapConfig.instance.getSingleMapConf(this.xml.getUint("mapid"));
            string text = this.vmap.ContainsKey("map_name") ? this.vmap["map_name"]._str : "--";

            this.txt.text    = text;
            this.txtBt1.text = ContMgr.getCont("worldmap_bt1", null);
            base.transform.SetAsLastSibling();
            int @int = this.xml.getInt("cost");

            this.needMoney   = @int / 10 * (int)(ModelBase <PlayerModel> .getInstance().lvl / 10f) + @int;
            this.txtBt2.text = this.needMoney.ToString();
            bool flag = a3_active.onshow;

            if (flag)
            {
                a3_active_findbtu expr_11B = a3_active_findbtu.instans;
                bool flag2 = ((expr_11B != null) ? expr_11B.monobj : null) != null;
                if (flag2)
                {
                    a3_active_findbtu.instans.monobj.SetActive(false);
                }
            }
        }
Exemplo n.º 2
0
        public override void onClose()
        {
            a3_active_findbtu.instans = null;
            this.runTime = 0;
            BaseProxy <FindBestoProxy> .getInstance().removeEventListener(FindBestoProxy.EVENT_INFO, new Action <GameEvent>(this.oninfo));

            this.SetDisposeAvatar();
        }
Exemplo n.º 3
0
        public override void onShowed()
        {
            a3_active_findbtu.instans = this;
            base.transform.FindChild("b/tishi").gameObject.SetActive(false);
            BaseProxy <FindBestoProxy> .getInstance().addEventListener(FindBestoProxy.EVENT_INFO, new Action <GameEvent>(this.oninfo));

            BaseProxy <FindBestoProxy> .getInstance().getinfo();

            this.tip.SetActive(false);
        }
Exemplo n.º 4
0
        public override void onClosed()
        {
            worldmapsubwin.id    = 0;
            worldmapsubwin.mapid = 0;
            bool flag = a3_active.onshow;

            if (flag)
            {
                a3_active_findbtu expr_21 = a3_active_findbtu.instans;
                bool flag2 = ((expr_21 != null) ? expr_21.monobj : null) != null;
                if (flag2)
                {
                    a3_active_findbtu.instans.monobj.SetActive(true);
                }
            }
        }