Пример #1
0
        private void OnReadMessage(rdtTcpMessage message)
        {
            if (message is rdtTcpMessageLog)
            {
                rdtTcpMessageLog log = (rdtTcpMessageLog)message;
                switch (log.m_logType)
                {
                case LogType.Error:
                    Debug.LogError(log);
                    break;

                case LogType.Assert:
                    Debug.LogError(log);
                    break;

                case LogType.Warning:
                    Debug.LogWarning(log);
                    break;

                case LogType.Log:
                    Debug.Log(log);
                    break;

                case LogType.Exception:
                    Debug.LogError(log);
                    break;
                }
            }
            if (this.m_messageCallbacks.ContainsKey(message.GetType()))
            {
                this.m_messageCallbacks[message.GetType()](message);
            }
        }
Пример #2
0
        private void OnLogMessageReceivedThreaded(string message, string stackTrace, LogType type)
        {
            rdtTcpMessageLog log = new rdtTcpMessageLog(message, stackTrace, type);

            this.EnqueueMessage(log);
        }