private void AddChat(SRSTaiXiuChat item)
 {
     chatData += "\n" + VKCommon.SetBoldString(VKCommon.FillColorString(item.U + ":", item.U.Equals(Database.Instance.Account().DisplayName) ? hexColorChatMe : hexColorChatOther))
                 + " " + item.M;
     if (chatData.Length > maxChatItem)
     {
         int index = chatData.IndexOf("\n");
         chatData = chatData.Substring(index + 1);
     }
 }
    public void HandleMessage(object[] data)
    {
        if (data != null && data.Length > 0)
        {
            SRSTaiXiuChat txChat = JsonConvert.DeserializeObject <SRSTaiXiuChat>(BestHTTP.JSON.Json.Encode(data[0]));
            AddChat(txChat);

            if (gChatContent.activeSelf)
            {
                txtChatContent.text = chatData;
            }
        }
    }