示例#1
0
 public static void Log(TaskManager.TaskLog m)
 {
     if (!TaskManager.IsMainThread)
     {
         object obj = TaskManager.syncRoot;
         lock (obj)
         {
             TaskManager.PendingLogs.Add(m);
         }
     }
     else
     {
         TaskManager.Write(m);
     }
 }
示例#2
0
        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;
            }
        }