예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
    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);
        }
    }