Пример #1
0
    private void PrintDebug(string logString, string stackTrace, LogType type)
    {
        if (DebugStop > 0 && MessagesSended >= DebugStop)
        {
            Application.logMessageReceived -= PrintDebug;
            return;
        }
        ++MessagesSended;

        ConsoleLog log = new ConsoleLog(logString, stackTrace, type);

        consoleLog.AppendLine(log.DetailedMessage());
        Sockets.SendLog(log);

        Print(type.ToString() + ": " + logString);
        string[] array = stackTrace.Split(new char[]
        {
            '\n'
        });
        for (int i = 0; i < array.Length; i++)
        {
            string str = array[i];
            Print("\t" + str);
        }
    }