예제 #1
0
 public static void Log(string str)
 {
     if (!UseLog)
     {
         return;
     }
     str = GetLogFormat(str);
     Debug.Log(str);
     StringPool.Collect(str);
 }
예제 #2
0
 public static void LogException(string str, Exception e)
 {
     if (!UseLog)
     {
         return;
     }
     threadStack = e.StackTrace;
     str         = GetLogFormat(str + e.Message);
     Debug.LogError(str);
     StringPool.Collect(str);
 }