public void AddChat2Channel(ChatManager.ChatInfo chatInfo)
    {
        this.CheckNums();
        ChatInfoBase chatInfoBase = ChatManager.CreatePrefab2ChannelChatInfo("_ChatItem" + this.m_listChats.get_Count());

        UGUITools.ResetTransform(chatInfoBase.get_transform(), this.m_rChannelChatsOffset);
        chatInfoBase.get_transform().set_localPosition(new Vector3(0f, this.CalHeight4Chats(this.m_listChats.get_Count()), 0f));
        chatInfoBase.ShowInfo(chatInfo);
        this.m_listChats.Add(chatInfoBase);
        this.m_rChannelChats.set_sizeDelta(new Vector2(0f, Mathf.Abs(this.CalHeight4Chats(this.m_listChats.get_Count()))));
        this.SetContentPos();
        if (chatInfo.sender_uid == EntityWorld.Instance.EntSelf.ID)
        {
            this.OnBtnlockClick(null);
        }
        else if (this.Islock)
        {
            this.NewNum++;
            this.ShowLock(true);
        }
    }