Ejemplo n.º 1
0
        protected void SaveDepAll(List <AssetTarget> all)
        {
            string path = Path.Combine(AssetBundlePathResolver.BundleSavePath, AssetBundlePathResolver.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());
        }
Ejemplo n.º 2
0
 public void SetDataWriter(AssetBundleDataWriter w)
 {
     this.dataWriter = w;
 }