private void SendMessage() { if (chatManager != null && chatMessage.Length > 0) { Multiplayer.Logic.Chat.SendChatMessage(chatMessage); chatManager.WriteMessage("Me: " + chatMessage); } }
public void OnConsoleCommand_chat(NotificationCenter.Notification n) { if (n != null && n.data != null && n.data.Count > 0) { string text = ""; for (int i = 0; i < n.data.Count; i++) { string word = n.data[i].ToString(); text += word + " "; } Multiplayer.Logic.Chat.SendChatMessage(text); chatManager.WriteMessage("Me: " + text); } }
public override void Process(ChatMessage message) { chatManager.WriteMessage(message.PlayerId + ": " + message.Text); }