void HandleUnityLog(string message, string stackTrace, LogType type) { if (!logDestroyed && !GameLogger.GetUnityLogLock()) { GameLogger.WriteLog(type == LogType.Exception ? GameLogger.LogType.Error : (GameLogger.LogType)type, "Unity", message + "\n" + stackTrace); UpdateLogCount(); if (type == LogType.Assert || type == LogType.Error || type == LogType.Exception) { ShowExceptionDialog("发生错误", message + "\n" + stackTrace, type); } } }