Update AssetSystem
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@ using UnityEngine;
|
||||
|
||||
namespace YooAsset
|
||||
{
|
||||
internal class BundleFileLoader
|
||||
internal class AssetBundleLoader
|
||||
{
|
||||
public enum EStatus
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace YooAsset
|
||||
internal AssetBundle CacheBundle { private set; get; }
|
||||
|
||||
|
||||
public BundleFileLoader(BundleInfo bundleInfo)
|
||||
public AssetBundleLoader(BundleInfo bundleInfo)
|
||||
{
|
||||
BundleFileInfo = bundleInfo;
|
||||
RefCount = 0;
|
||||
@@ -157,7 +157,7 @@ namespace YooAsset
|
||||
if (BundleFileInfo.IsEncrypted)
|
||||
{
|
||||
if (AssetSystem.DecryptionServices == null)
|
||||
throw new Exception($"{nameof(BundleFileLoader)} need IDecryptServices : {BundleFileInfo.BundleName}");
|
||||
throw new Exception($"{nameof(AssetBundleLoader)} need IDecryptServices : {BundleFileInfo.BundleName}");
|
||||
|
||||
ulong offset = AssetSystem.DecryptionServices.GetFileOffset(BundleFileInfo);
|
||||
if (_isWaitForAsyncComplete)
|
||||
+4
-4
@@ -4,16 +4,16 @@ using System.Collections.Generic;
|
||||
|
||||
namespace YooAsset
|
||||
{
|
||||
internal class DependBundleGrouper
|
||||
internal class DependAssetBundleGrouper
|
||||
{
|
||||
/// <summary>
|
||||
/// 依赖的资源包加载器列表
|
||||
/// </summary>
|
||||
private readonly List<BundleFileLoader> _dependBundles;
|
||||
private readonly List<AssetBundleLoader> _dependBundles;
|
||||
|
||||
public DependBundleGrouper(string assetPath)
|
||||
public DependAssetBundleGrouper(string assetPath)
|
||||
{
|
||||
_dependBundles = AssetSystem.CreateDependBundleLoaders(assetPath);
|
||||
_dependBundles = AssetSystem.CreateDependAssetBundleLoaders(assetPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
Reference in New Issue
Block a user