Example #1
0
        public static void onScreen(this List <string> list, string msg = "", int maxCount = 30)
        {
            var listToPrint = list.Count > maxCount?list.GetRange(0, maxCount) : list;

            listToPrint.ForEach(s => ErrorMessage.AddDebug(msg + s));
        }
Example #2
0
 /// messages with the same prefix will stay in the same message slot (also <see cref="StringExtensions.onScreen(string, string)"/>)
 public static void addMessage(string message, string prefix)
 {
     PersistentScreenMessages.patch();
     ErrorMessage.AddDebug($"[{prefix}] {message}");
 }