Update AssetBundleCollector

AssetBundleGrouper变更为AssetBundleCollector
This commit is contained in:
hevinci
2022-05-04 21:24:51 +08:00
parent d592fb96a6
commit eafdb8cd31
40 changed files with 247 additions and 247 deletions
@@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace YooAsset
{
internal class DependAssetBundleGrouper
internal class DependAssetBundleGroup
{
/// <summary>
/// 依赖的资源包加载器列表
@@ -12,7 +12,7 @@ namespace YooAsset
private readonly List<AssetBundleLoaderBase> _dependBundles;
public DependAssetBundleGrouper(string assetPath)
public DependAssetBundleGroup(string assetPath)
{
_dependBundles = AssetSystem.CreateDependAssetBundleLoaders(assetPath);
}
@@ -6,14 +6,14 @@ namespace YooAsset
internal abstract class BundledProvider : ProviderBase
{
protected AssetBundleLoaderBase OwnerBundle { private set; get; }
protected DependAssetBundleGrouper DependBundles { private set; get; }
protected DependAssetBundleGroup DependBundles { private set; get; }
public BundledProvider(string assetPath, System.Type assetType) : base(assetPath, assetType)
{
OwnerBundle = AssetSystem.CreateOwnerAssetBundleLoader(assetPath);
OwnerBundle.Reference();
OwnerBundle.AddProvider(this);
DependBundles = new DependAssetBundleGrouper(assetPath);
DependBundles = new DependAssetBundleGroup(assetPath);
DependBundles.Reference();
}
public override void Destroy()