update asset system

This commit is contained in:
hevinci
2022-12-05 16:29:45 +08:00
parent ac88fd5cf6
commit 824d1c1501
12 changed files with 48 additions and 142 deletions
@@ -79,6 +79,7 @@ namespace YooAsset
// 3. 检测加载结果
if (Status == EStatus.Checking)
{
Progress = _cacheRequest.progress;
if (_cacheRequest != null)
{
if (IsWaitForAsyncComplete)
@@ -107,11 +108,5 @@ namespace YooAsset
InvokeCompletion();
}
}
public override float GetLoadProgress()
{
if (_cacheRequest == null)
return 0;
return _cacheRequest.progress;
}
}
}