Exemple #1
0
        public void SendMessage(IUnit source, string message)
        {
            ChatEntry entry = new ChatEntry(source.name, source.sprite, message);

            chatlog.Add(entry);
            // Server.Instance.SendMessage(entry);
        }
Exemple #2
0
 private void ProcessMessage(ChatEntry entry)
 {
     chatlog.Add(entry);
     OnMessageReceived.Invoke(entry);
 }
Exemple #3
0
 public void DisplayMessage(ChatEntry entry) {
     DisplayMessage(entry.sourceName, entry.text, entry.voice);
 }
Exemple #4
0
 private void OnMessageReceived(ChatEntry message)
 {
     chatbox.DisplayMessage(message);
 }