Ejemplo n.º 1
0
        private void handleUnityLog(string message, string stackTrace, LogType type)
        {
            var s = null as string;

            switch (type)
            {
            case LogType.Log:
            case LogType.Warning:
                s = message;
                break;

            default:
                s = message + stackTrace;
                break;
            }

            for (var i = 0; i < this.outputList.Count; i++)
            {
                if (this.outputList[i] is UnityOutput)
                {
                    continue;
                }

                this.outputList[i].Output(type.ToLogLevel(), "UNITY", null, s);
            }
        }