Beispiel #1
0
 private void ReceivedLog(string logString, string stackTrace, LogType logType)
 {
     mDebugOutput.WriteLog(logString, stackTrace, logType);
     if (mPathText == null)
     {
         return;//不存在 或者应用已经关闭了
     }
     LogList.Add(new DebugLog(logString, stackTrace, logType));
     str = "";
     for (int i = Mathf.Max(0, LogList.Count - MAX_COUNT); i < LogList.Count; i++)
     {
         str = str + "\n" + LogList[i].ToString();
     }
     mPathText.text = str;
 }