Beispiel #1
0
        public override void OnHide()
        {
            base.OnHide();

            if (GlobalInfo.GAME_NETMODE == GameNetworkMode.Standalone)
            {
                TimeModule.Instance.RemoveTimeaction(TickCanNextPart);
            }
            GameEvents.UIEvents.UI_Talk_Event.OnTalkChoose -= EventChoose;
            this.m_btnNext.RemoveClickCallBack(BtnNextPart);
            this.m_bg_tex.RemoveClickCallBack(BtnNextPart);
            m_chooseID.Clear();
            if (GlobalInfo.GAME_NETMODE == GameNetworkMode.Network)
            {
                if (TalkDialogEnum.SceneTalk == m_talk_type)
                {
                    GlobalInfo.MY_PLAYER_INFO.PlayerTaskSystem.SyncTaskDetailInfo(1);
                }
            }
            if (TalkDialogEnum.TaskEndTalk == m_talk_type)
            {
                GameEvents.UIEvents.UI_Common_Event.OnCommonUIVisible.SafeInvoke(true);
            }
            GameEvents.UIEvents.UI_Talk_Event.OnTalkFinish.SafeInvoke(m_talkdata.chatData.id);
            if (TalkUIHelper.TalkEnum == TalkDialogEnum.SceneTalk)
            {
                GameEvents.UIEvents.UI_GameEntry_Event.OnBlockTaskTouch.SafeInvoke(1.0f);
            }
            m_currentIndex     = -1;
            m_talkdata         = null;
            this.m_currentPart = null;
        }
Beispiel #2
0
        private void InitData(long id)
        {
            ConfChat confChat = ConfChat.Get(id);

            if (confChat == null)
            {
                DebugUtil.LogError("chat data is not exist");
            }
            m_talkdata          = new TalkData();
            m_talkdata.chatData = confChat;
            string sceneName = confChat.sceanid;

            if (!sceneName.Contains(".png"))
            {
                sceneName += ".png";
            }
            m_bg_tex.TextureName = sceneName;
            ConfChatItem.GetConfig("chatId", confChat.id, out m_talkdata.partData);
        }