public void LogHandler(string message, string stacktrace, UnityEngine.LogType type) { StringBuilder s = new StringBuilder(); s.Append(message); s.Append("\r\n"); if (type == UnityEngine.LogType.Error || type == UnityEngine.LogType.Exception) { s.Append(stacktrace); LogCenter.LogError(s.ToString()); } else if (type == UnityEngine.LogType.Log) { LogCenter.Log(s.ToString()); } else if (type == UnityEngine.LogType.Warning) { LogCenter.LogWarning(s.ToString()); } }