Пример #1
0
        //公会回调
        private void OnclickUniBtn()
        {
            //UI_HomeControler.Inst.AddUI ( HeroStrengthen.UI_ResPath );

            //HomeControler.Inst.PushFunly(3, 97);
            ////UI_HomeControler.Inst.AddUI(UI_Uni.UI_ResPath);
            //SSendMsgNotify _smn = new SSendMsgNotify();
            //_smn.msgid = 0;
            //GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_MsgNotify,_smn);

            UI_HomeControler.Inst.AddUI(UI_StoreMgr.UI_ResPath);

            CGetNewShop cgns = new CGetNewShop();

            IOControler.GetInstance().SendProtocol(cgns);
        }
Пример #2
0
    public override void UpdateUIData()
    {
        base.UpdateUIData();

        if (m_Store.MRefreshTime > 0)
        {
            int    hour      = m_Store.MRefreshTime / 3600;
            int    minute    = m_Store.MRefreshTime % 3600 / 60;
            int    second    = m_Store.MRefreshTime % 3600 % 60;
            string hourStr   = hour <= 9 ? "0" + hour : hour.ToString();
            string minuteStr = minute <= 9 ? "0" + minute : minute.ToString();
            string secondStr = second <= 9 ? "0" + second : second.ToString();

            m_RefleshTimeTxt.text = string.Format("{0}:{1}:{2}", hourStr, minuteStr, secondStr);
        }
        else
        {
            CGetNewShop cgns = new CGetNewShop();
            IOControler.GetInstance().SendProtocol(cgns);
        }
    }