void Start() { lines.Clear(); contentChatMessage.text = string.Empty; UIEventListener.Get(gmCommandButton.gameObject).onClick = go => ChatInputBox.SendChat("//help"); }
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(); }