Ejemplo n.º 1
0
    }                                                         // 進度

    /// <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));
    }
Ejemplo n.º 2
0
 public static void ClearPersistentDataPath()
 {
     foreach (string dir in Directory.GetDirectories(CResourceModule.GetAppDataPath()))
     {
         Directory.Delete(dir, true);
     }
 }
Ejemplo n.º 3
0
 public static void OpenPersistentDataPath()
 {
     System.Diagnostics.Process.Start(CResourceModule.GetAppDataPath());
 }
Ejemplo n.º 4
0
 public static string GetFullSavePath(string relativePath)
 {
     return(CResourceModule.GetAppDataPath() + "/" + relativePath);
 }