Exemplo n.º 1
0
        private AssetBundleUpdateInfo GenerateAssetBundleUpdateInfo(AssetBundleManifest manifest)
        {
            var versionInfo =
                new AssetBundleVersionInfo
            {
                MinorVersion  = int.Parse(DateTime.Now.ToString("yyMMddHHmm")),
                MarjorVersion = CURRENT_VERSION_MAJOR
            };

            versionInfo.Save(mAbBuildInfo.outputDirectory, mAbBuildInfo.isEncrypt);
            var assetBundleUpdateInfo =
                new AssetBundleUpdateInfo(versionInfo.MinorVersion, mAbBuildInfo.outputDirectory, manifest);

            assetBundleUpdateInfo.Save(mAbBuildInfo.outputDirectory, mAbBuildInfo.isEncrypt);
            return(assetBundleUpdateInfo);
        }
Exemplo n.º 2
0
 private void MergeAssetBundle(AssetBundleUpdateInfo updateInfo)
 {
     AssetBundleMerge.Pack(mAbBuildInfo.outputDirectory, Path.Combine(mAbBuildInfo.GetExtraOutPutDirectory(), Utility.GetPackPlatfomrName()), updateInfo);
     updateInfo.Save(mAbBuildInfo.outputDirectory, mAbBuildInfo.isEncrypt);
 }