mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
修正预加载流程
This commit is contained in:
@@ -44,7 +44,7 @@ namespace GameMain
|
|||||||
|
|
||||||
GameEvent.Send("UILoadUpdate.RefreshVersion");
|
GameEvent.Send("UILoadUpdate.RefreshVersion");
|
||||||
|
|
||||||
PreloadResources().Forget();
|
PreloadResources();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
||||||
@@ -110,12 +110,8 @@ namespace GameMain
|
|||||||
callback?.Invoke();
|
callback?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async UniTaskVoid PreloadResources()
|
private void PreloadResources()
|
||||||
{
|
{
|
||||||
await SmoothValue(1f, 1.2f).ToUniTask(GameModule.Procedure);
|
|
||||||
|
|
||||||
await UniTask.Delay(TimeSpan.FromSeconds(2.5f));
|
|
||||||
|
|
||||||
if (_needProLoadConfig)
|
if (_needProLoadConfig)
|
||||||
{
|
{
|
||||||
LoadAllConfig();
|
LoadAllConfig();
|
||||||
|
Reference in New Issue
Block a user