public static void Log(string str) { if (!UseLog) { return; } str = GetLogFormat(str); Debug.Log(str); StringPool.Collect(str); }
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); }