update asset system
This commit is contained in:
@@ -52,6 +52,7 @@ namespace YooAsset
|
||||
// 2. 检测加载结果
|
||||
if (Status == EStatus.Checking)
|
||||
{
|
||||
Progress = _asyncOp.progress;
|
||||
if (_asyncOp.isDone)
|
||||
{
|
||||
if (SceneObject.IsValid() && _activateOnLoad)
|
||||
@@ -68,11 +69,5 @@ namespace YooAsset
|
||||
}
|
||||
#endif
|
||||
}
|
||||
public override float GetLoadProgress()
|
||||
{
|
||||
if (_asyncOp == null)
|
||||
return 0;
|
||||
return _asyncOp.progress;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user