예제 #1
0
        protected override void doLog(rcLogCategory category, string msg)
        {
            m_Messages.Add(new LogMessage(category, msg));
            if (m_Messages.Count > MAX_MESSAGES)
            {
                m_Messages.RemoveAt(0);
            }


            m_Dirty = true;

            switch (category)
            {
            case rcLogCategory.RC_LOG_ERROR:
                Debug.LogError(msg);
                break;

            case rcLogCategory.RC_LOG_WARNING:
                Debug.LogWarning(msg);
                break;

            case rcLogCategory.RC_LOG_PROGRESS:
                Debug.Log(msg);
                break;
            }
        }
예제 #2
0
        protected override void doLog(rcLogCategory category, string msg)
        {
            m_Messages.Add(new LogMessage(category, msg));
            if (m_Messages.Count > MAX_MESSAGES)
            {
                m_Messages.RemoveAt(0);
            }

            m_Dirty = true;
        }
예제 #3
0
 public LogMessage(rcLogCategory category, string msg)
 {
     m_Category = category;
     m_Message  = msg;
 }
예제 #4
0
 public LogMessage(rcLogCategory category, string msg)
 {
     m_Category = category;
     m_Message = msg;
 }
예제 #5
0
        protected override void doLog(rcLogCategory category, string msg)
        {
            m_Messages.Add(new LogMessage(category, msg));
            if (m_Messages.Count > MAX_MESSAGES){
                m_Messages.RemoveAt(0);
            }

            m_Dirty = true;
        }