public void SendMessage(IUnit source, string message) { ChatEntry entry = new ChatEntry(source.name, source.sprite, message); chatlog.Add(entry); // Server.Instance.SendMessage(entry); }
private void ProcessMessage(ChatEntry entry) { chatlog.Add(entry); OnMessageReceived.Invoke(entry); }
public void DisplayMessage(ChatEntry entry) { DisplayMessage(entry.sourceName, entry.text, entry.voice); }
private void OnMessageReceived(ChatEntry message) { chatbox.DisplayMessage(message); }