コード例 #1
0
    void Start()
    {
        lines.Clear();
        contentChatMessage.text = string.Empty;

        UIEventListener.Get(gmCommandButton.gameObject).onClick = go => ChatInputBox.SendChat("//help");
    }
コード例 #2
0
        public void SendString_Click(object sender, RoutedEventArgs e)
        {
            if (IsLogin == false)
            {
                return;
            }

            JSonPacket ChatPacket = new JSonPacket();

            ChatPacket.Protocol = "request_chat";

            String ChattingText = ChatInputBox.Text;

            ChatPacket.AddPacket(User.UserID);
            ChatPacket.AddPacket(ChattingText);

            WebConnector.SendPacket(ChatPacket);
            ChatInputBox.Clear();
        }