public void ShowTrack(LogData _data) { m_Type.color = UColor.HEXtoColor(GetLogHexColor(_data.m_LogType)); m_Info.text = _data.m_LogInfo; m_Time.text = UTime.GetDateTime(_data.m_Time).ToLongTimeString(); m_Track.text = _data.m_LogTrace; transform.SetActive(true); }
public void SetData(bool _collapse, int _count = 0) { m_Type.color = UColor.HEXtoColor(GetLogHexColor(m_Data.m_LogType)); m_Info.text = m_Data.m_LogInfo; if (_collapse) { m_Info.text = string.Format("{0} {1}", _count, m_Data.m_LogInfo); } else { m_Info.text = string.Format("{0} {1}", UTime.GetDateTime(m_Data.m_Time).ToShortTimeString(), m_Data.m_LogInfo); } }