Example #1
0
        protected void SaveDepAll(List <AssetTarget> all)
        {
            string path = Path.Combine(PathResolver.BundleSavePath, PathResolver.DependFileName);

            if (File.Exists(path))
            {
                File.Delete(path);
            }

            List <AssetTarget> exportList = new List <AssetTarget>();

            for (int i = 0; i < all.Count; i++)
            {
                AssetTarget target = all[i];
                if (target.needSelfExport)
                {
                    exportList.Add(target);
                }
            }
            AssetBundleDataWriter writer = dataWriter;

            writer.Save(path, exportList.ToArray());
        }
Example #2
0
 public void SetDataWriter(AssetBundleDataWriter w)
 {
     this.dataWriter = w;
 }