} // 進度 /// <summary> /// /// </summary> /// <param name="fullUrl"></param> /// <param name="toPath"></param> /// <param name="useCache">如果存在则不下载了!</param> public CWWWDownloader(string fullUrl, string toPath, bool useCache = false) { ToPath = toPath; _SavePath = CResourceModule.GetAppDataPath() + "/" + ToPath; UseCache = useCache; CResourceModule.Instance.StartCoroutine(StartDownload(fullUrl)); }
public static void ClearPersistentDataPath() { foreach (string dir in Directory.GetDirectories(CResourceModule.GetAppDataPath())) { Directory.Delete(dir, true); } }
public static void OpenPersistentDataPath() { System.Diagnostics.Process.Start(CResourceModule.GetAppDataPath()); }
public static string GetFullSavePath(string relativePath) { return(CResourceModule.GetAppDataPath() + "/" + relativePath); }