Esempio n. 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());
    }
Esempio n. 2
0
 public void SetDataWriter(AssetBundleDataWriter w)
 {
     this.dataWriter = w;
 }