//保存filelist public static bool SaveFileList(string path, XFileList fileList) { if (!XUtilities.IsFolder(path) || !Directory.Exists(path)) { return(false); } var filelistPath = $"{path}/{FILE_LIST_NAME}"; try { var json = JsonUtility.ToJson(fileList); XUtilities.SaveFile(filelistPath, json); XDebug.Log(Tag, json); return(true); } catch (Exception e) { XDebug.LogError(Tag, $"保存文件清单失败 {filelistPath}\n{e.ToString()}"); } return(false); }
public override void Enter() { XDebug.Log(XTaskConst.Tag, $"wait {m_time.ToString("f2")} seconds"); m_timeCounter = 0f; }