Update AssetSystem

This commit is contained in:
hevinci
2022-03-23 14:58:13 +08:00
parent 829b4fca76
commit 6f6ecf845a
2 changed files with 71 additions and 44 deletions
@@ -51,6 +51,25 @@ namespace YooAsset
}
}
/// <summary>
/// 等待异步执行完毕
/// </summary>
public void WaitForAsyncComplete()
{
if (IsValid == false)
return;
_provider.WaitForAsyncComplete();
}
/// <summary>
/// 释放资源句柄
/// </summary>
public void Release()
{
this.ReleaseInternal();
}
/// <summary>
/// 获取子资源对象
/// </summary>
@@ -70,23 +89,5 @@ namespace YooAsset
YooLogger.Warning($"Not found sub asset {assetName} in {_provider.AssetPath}");
return null;
}
/// <summary>
/// 等待异步执行完毕
/// </summary>
public void WaitForAsyncComplete()
{
if (IsValid == false)
return;
_provider.WaitForAsyncComplete();
}
/// <summary>
/// 释放资源句柄
/// </summary>
public void Release()
{
this.ReleaseInternal();
}
}
}