Пример #1
0
 public void Init(net_protocol.MatcherChatResp resp)
 {
     content.text  = resp.userName + ":" + resp.content;
     nameText.text = resp.userName;
     userId        = resp.userId;
     UGUIEventListener.Get(reportBtn).onClick = delegate { ReportPlay(); };
     UGUIEventListener.Get(addBtn).onClick    = delegate { AddPlay(); };
 }
Пример #2
0
    /// <summary> 聊天 </summary>
    public static void MatcherChat(net_protocol.MatcherChatResp resp)
    {
        var node = NodeManager.GetNode <MatchReadyNode>();

        if (node)
        {
            node.chatPanel.AnalysisMessage(resp);
        }
    }