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