Update AssetSystem

This commit is contained in:
hevinci
2022-03-22 21:18:33 +08:00
parent 39c69b1d98
commit 68430488b3
6 changed files with 25 additions and 25 deletions

View File

@@ -5,15 +5,15 @@ namespace YooAsset
{
internal abstract class BundledProvider : ProviderBase
{
protected BundleFileLoader OwnerBundle { private set; get; }
protected DependBundleGrouper DependBundles { private set; get; }
protected AssetBundleLoader OwnerBundle { private set; get; }
protected DependAssetBundleGrouper DependBundles { private set; get; }
public BundledProvider(string assetPath, System.Type assetType) : base(assetPath, assetType)
{
OwnerBundle = AssetSystem.CreateOwnerBundleLoader(assetPath);
OwnerBundle = AssetSystem.CreateOwnerAssetBundleLoader(assetPath);
OwnerBundle.Reference();
OwnerBundle.AddProvider(this);
DependBundles = new DependBundleGrouper(assetPath);
DependBundles = new DependAssetBundleGrouper(assetPath);
DependBundles.Reference();
}
public override void Destory()