mirror of https://github.com/tuyoogame/YooAsset
parent
e278883958
commit
896681df87
|
@ -103,13 +103,16 @@ namespace YooAsset
|
||||||
MainAssetInfo = assetInfo;
|
MainAssetInfo = assetInfo;
|
||||||
|
|
||||||
// 创建资源包加载器
|
// 创建资源包加载器
|
||||||
OwnerBundle = impl.CreateOwnerAssetBundleLoader(assetInfo);
|
if (impl != null)
|
||||||
OwnerBundle.Reference();
|
{
|
||||||
OwnerBundle.AddProvider(this);
|
OwnerBundle = impl.CreateOwnerAssetBundleLoader(assetInfo);
|
||||||
|
OwnerBundle.Reference();
|
||||||
|
OwnerBundle.AddProvider(this);
|
||||||
|
|
||||||
var dependBundles = impl.CreateDependAssetBundleLoaders(assetInfo);
|
var dependBundles = impl.CreateDependAssetBundleLoaders(assetInfo);
|
||||||
DependBundleGroup = new DependAssetBundleGroup(dependBundles);
|
DependBundleGroup = new DependAssetBundleGroup(dependBundles);
|
||||||
DependBundleGroup.Reference();
|
DependBundleGroup.Reference();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue