Пример #1
0
        public void psstRetNotifyHandIsFullUserCmd(stRetNotifyHandIsFullUserCmd msg)
        {
            m_sceneDZData.m_cardNpcMgr.m_selfCardFullTip.show();

            if (1 == msg.who)            // 如果是自己
            {
                m_sceneDZData.m_cardNpcMgr.m_selfCardFullTip.desc.text = "自己的卡牌已经满了";
            }
            else            // 对方
            {
                m_sceneDZData.m_cardNpcMgr.m_selfCardFullTip.desc.text = "对方的卡牌已经满了";
            }

            // 启动定时器
            TimerItemBase timer = new TimerItemBase();
            timer.m_internal = 1;
            timer.m_timerDisp = endSelfFullTip;
            Ctx.m_instance.m_timerMgr.addObject(timer);
        }
Пример #2
0
        // 通知手里卡牌已经满
        protected void psstRetNotifyHandIsFullUserCmd(ByteBuffer bu)
        {
            stRetNotifyHandIsFullUserCmd cmd = new stRetNotifyHandIsFullUserCmd();
            cmd.derialize(bu);

            UISceneDZ uiSceneDZ = Ctx.m_instance.m_uiSceneMgr.getSceneUI<UISceneDZ>(UISceneFormID.eUISceneDZ);
            if (uiSceneDZ != null && uiSceneDZ.isVisible())
            {
                uiSceneDZ.psstRetNotifyHandIsFullUserCmd(cmd);
            }
        }