public static void Log(TaskManager.TaskLog m) { if (!TaskManager.IsMainThread) { object obj = TaskManager.syncRoot; lock (obj) { TaskManager.PendingLogs.Add(m); } } else { TaskManager.Write(m); } }
private static void Write(TaskManager.TaskLog m) { switch (m.Type) { case 0: case 4: Debug.LogError(m.Message); break; case 1: case 3: Debug.Log(m.Message); break; case 2: Debug.LogWarning(m.Message); break; } }