Beispiel #1
0
 public static void AddMessage(string chatName, string content, string type)
 {
     if (!ChatList.Exists(B => B.ChatName == chatName))
     {
         ChatList.Add(
             new Chat(chatName, content, Instantiate(instance.ChatPrefab, instance.ChatHolder, false))
             );
     }
     else
     {
         ChatList.Single(B => B.ChatName == chatName).AddMessage(content, type);
     }
 }