public LogContentInfo(UILogDataType type, string info, bool isSFC, bool STL) { dataType = type; isSingleFrameContent = isSFC; content = info; sendToLogs = STL; if (sendToLogs) { Debug.Log(dataType.ToString() + " : " + content); } }
public static void UpdateContent(UILogDataType type, string info, bool isSFC = false, bool STL = false) { if (LogStorage.Find(x => x.dataType == type) == null) { LogStorage.Add(new LogContentInfo(type, info, isSFC, STL)); } else { LogStorage.Find(x => x.dataType == type).UpdateContent(info, isSFC, STL); } }
private static string GetContentByType(UILogDataType type) { LogContentInfo currContent = LogStorage.Find(x => x.dataType == type); if (currContent == null) { return(null); } else { string info = currContent.content; if (currContent.isSingleFrameContent) { LogStorage.Remove(currContent); } return(info); } }