mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
同步GameApp、Procedure里简化IUpdateDriver的调用
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Procedure
|
||||
LauncherMgr.Show(UIDefine.UILoadUpdate, "初始化资源中...");
|
||||
|
||||
// 注意:使用单机模式并初始化资源前,需要先构建 AssetBundle 并复制到 StreamingAssets 中,否则会产生 HTTP 404 错误
|
||||
ModuleSystem.GetModule<IUpdateDriver>().StartCoroutine(InitResources(procedureOwner));
|
||||
Utility.Unity.StartCoroutine(InitResources(procedureOwner));
|
||||
}
|
||||
|
||||
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
||||
@@ -88,7 +88,7 @@ namespace Procedure
|
||||
LoadStyle.StyleEnum.Style_Retry
|
||||
, () =>
|
||||
{
|
||||
ModuleSystem.GetModule<IUpdateDriver>().StartCoroutine(InitResources(procedureOwner));
|
||||
Utility.Unity.StartCoroutine(InitResources(procedureOwner));
|
||||
}, UnityEngine.Application.Quit);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user