void Update()
        {
            if (a3_liteMinimap.instance == null)
            {
                return;
            }

            if (Globle.formatTime((int)a3_liteMinimap.instance.active_leftTm) == "00:00:00")
            {
                IconAddLightMgr.getInstance().showOrHideFire("Light_btnCseth", false);
                if (System.DateTime.Now.Hour >= 20 || System.DateTime.Now.Hour <= 12)
                {
                    time_txt.text = ContMgr.getCont("a3_active_godlight_nexttime1");
                }
                else
                {
                    time_txt.text = ContMgr.getCont("a3_active_godlight_nexttime2");
                }
            }
            else
            {
                IconAddLightMgr.getInstance().showOrHideFire("Light_btnCseth", false);
                time_txt.text = Globle.formatTime((int)a3_liteMinimap.instance.active_leftTm);
            }
        }
        void timechange()
        {
            time -= 1;

            cj_txt.text = Globle.formatTime((int)time, false);/* time.ToString();*/
            if (time <= 0)
            {
                refresh_items(ids);
                btns_lottery.interactable = true;
                cj_txt.text = ContMgr.getCont("a3_huoyueonline1");
                CancelInvoke("timechange");
            }
        }
Exemplo n.º 3
0
        private void Update()
        {
            bool flag = Globle.formatTime((int)a3_liteMinimap.instance.active_leftTm, true) == "00:00:00";

            if (flag)
            {
                IconAddLightMgr.getInstance().showOrHideFire("Light_btnCseth", false);
                bool flag2 = DateTime.Now.Hour >= 20 || DateTime.Now.Hour <= 12;
                if (flag2)
                {
                    this.time_txt.text = "下次将在12:00开启";
                }
                else
                {
                    this.time_txt.text = "下次将在19:00开启";
                }
            }
            else
            {
                IconAddLightMgr.getInstance().showOrHideFire("Light_btnCseth", false);
                this.time_txt.text = Globle.formatTime((int)a3_liteMinimap.instance.active_leftTm, true);
            }
        }