コード例 #1
0
        // 当点击取消按钮时退出战场进入静态场景
        public void onChickReturnButton()
        {
            SoundPlayHandler.StopSceneSound();
            ViewEventHelper.Instance.SendCommand(GameLogicDef.GVIEWCMD_USER_BACK_GAME);

            // 隐藏聊天框
            ChatForceConditionHide ChatData = new ChatForceConditionHide();

            ChatData.bForceHide = true;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CHATBOX_CONDITIONHIDE, ChatData);
            LogicDataCenter.chatMessageManager.clearAllChatMsgData();
        }
コード例 #2
0
        // 游戏中途退出战场进入主城
        public void onReqExitWar()
        {
            Debug.Log("onReqExitWar");
            SoundPlayHandler.StopSceneSound();
            //ViewEventHelper.Instance.SendCommand(GameLogicDef.GVIEWCMD_USER_BACK_GAME);
            EntityEventHelper.Instance.SendCommand(EntityFactory.MainHeroID, EntityLogicDef.ENTITY_CMD_REQ_EXIT_WAR);

            // 隐藏聊天框
            ChatForceConditionHide ChatData = new ChatForceConditionHide();

            ChatData.bForceHide = true;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CHATBOX_CONDITIONHIDE, ChatData);
        }
コード例 #3
0
        // 战场结束最后胜利队伍退出战场进入主城
        public void onGameOverReturn()
        {
            Debug.Log("onGameOverReturn");
            ViewEventHelper.Instance.SendCommand(GameLogicDef.GVIEWCMD_USER_BACK_GAME);
            //EntityEventHelper.Instance.SendCommand(EntityFactory.MainHeroID, EntityLogicDef.ENTITY_CMD_REQ_EXIT_WAR);

            SoldierCamera.MainInstance <SoldierCamera>().LeaveCurMode();
            // 隐藏聊天框
            ChatForceConditionHide ChatData = new ChatForceConditionHide();

            ChatData.bForceHide = true;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CHATBOX_CONDITIONHIDE, ChatData);
            SetVisible(false);
        }