mirror of https://github.com/tuyoogame/YooAsset
fix #422
parent
8a2dc86cf7
commit
766cf90a19
|
@ -71,7 +71,7 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (IsWaitForAsyncComplete)
|
if (IsWaitForAsyncComplete)
|
||||||
{
|
{
|
||||||
// 场景加载无法强制异步转同步
|
//注意:场景加载无法强制异步转同步
|
||||||
YooLogger.Error("The scene is loading asyn !");
|
YooLogger.Error("The scene is loading asyn !");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -104,6 +104,11 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
internal override void InternalWaitForAsyncComplete()
|
||||||
|
{
|
||||||
|
//TODO 场景加载不支持异步转同步,为了支持同步加载方法需要实现该方法!
|
||||||
|
InternalOnUpdate();
|
||||||
|
}
|
||||||
public override void UnSuspendLoad()
|
public override void UnSuspendLoad()
|
||||||
{
|
{
|
||||||
_suspendLoad = false;
|
_suspendLoad = false;
|
||||||
|
|
|
@ -76,7 +76,7 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (IsWaitForAsyncComplete)
|
if (IsWaitForAsyncComplete)
|
||||||
{
|
{
|
||||||
// 场景加载无法强制异步转同步
|
// 注意:场景加载无法强制异步转同步
|
||||||
YooLogger.Error("The scene is loading asyn !");
|
YooLogger.Error("The scene is loading asyn !");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -110,6 +110,11 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
internal override void InternalWaitForAsyncComplete()
|
||||||
|
{
|
||||||
|
//TODO 场景加载不支持异步转同步,为了支持同步加载方法需要实现该方法!
|
||||||
|
InternalOnUpdate();
|
||||||
|
}
|
||||||
public override void UnSuspendLoad()
|
public override void UnSuspendLoad()
|
||||||
{
|
{
|
||||||
_suspendLoad = false;
|
_suspendLoad = false;
|
||||||
|
|
Loading…
Reference in New Issue