Exemplo n.º 1
0
    private static void DownloadPackageFiles()
    {
        CleanPackageFiles();

        Stopwatch sw = Stopwatch.StartNew();

        FileUtil.CopyFolder(GetPackagePcRoot + "/" + Folder + "/PackageFiles", GetPackageFilesDir);
        Debug.LogWarning("复制PackageFiles文件时间:" + sw.ElapsedMilliseconds / 1000.0f + "ms");
    }
Exemplo n.º 2
0
    private static void DownloadOriginalBundles()
    {
        CleanOriginalBundles();

        Stopwatch sw = Stopwatch.StartNew();

        FileUtil.CopyFolder(GetPackagePcRoot + "/" + Folder + "/OriginalBundles", AssetBundleHelper.GetOriginalBundlesPath(), ".manifest");
        Debug.LogWarning("复制OriginalBundles文件时间:" + sw.ElapsedMilliseconds / 1000.0f + "ms");
    }
Exemplo n.º 3
0
    static void DownloadFirstRunBunlde()
    {
        Stopwatch sw = Stopwatch.StartNew();

        CleanIndexFiles();
        PublishRes.DeleteOuterStreamingAssets_AssetBundles();
        Debug.LogWarning("删除文件时间:" + sw.ElapsedMilliseconds / 1000.0f + "ms");

        sw.Restart();
        FileUtil.CopyFolder(GetPackagePcRoot + "/" + Folder + "/StreamingAssets/AssetBundles",
                            AssetBundleHelper.GetOuterStreamingAssetsPath() + "/AssetBundles");
        Debug.LogWarning("复制OuterStreamingAssetsPath文件时间:" + sw.ElapsedMilliseconds / 1000.0f + "ms");

        sw.Restart();
        FileUtil.CopyFolder(GetPackagePcRoot + "/" + Folder + "/StreamingAssets/IndexFiles",
                            AssetBundleHelper.GetOuterStreamingAssetsPath() + "/IndexFiles");
        Debug.LogWarning("复制IndexFiles文件时间:" + sw.ElapsedMilliseconds / 1000.0f + "ms");
    }