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; } }
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; }
public LogMessage(rcLogCategory category, string msg) { m_Category = category; m_Message = msg; }
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; }