Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
        }
    }