예제 #1
0
    public void ChooseSpeaker()
    {
        m_ChooseFrame.SetActive(true);

        if (m_ChatInfoLogic != null)
        {
            if (m_ChatInfoLogic.CurChannelType == ChatInfoLogic.CHANNEL_TYPE.CHAT_TYPE_FRIEND)
            {
                m_ChatInfoLogic.FilterFriendChat(m_SpeakerGuid, m_SpeakerName);

                if (GameManager.gameManager.PlayerDataPool.ChatHistory.FriendSendList.Contains(m_SpeakerGuid))
                {
                    GameManager.gameManager.PlayerDataPool.ChatHistory.FriendSendList.Remove(m_SpeakerGuid);
                    HideInform();

                    if (GameManager.gameManager.PlayerDataPool.ChatHistory.FriendSendList.Count == 0)
                    {
                        m_ChatInfoLogic.m_FriendInformSprite.SetActive(false);
                    }
                }
            }
        }
    }