mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
修正预加载流程
This commit is contained in:
@@ -44,7 +44,7 @@ namespace GameMain
|
||||
|
||||
GameEvent.Send("UILoadUpdate.RefreshVersion");
|
||||
|
||||
PreloadResources().Forget();
|
||||
PreloadResources();
|
||||
}
|
||||
|
||||
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
||||
@@ -110,12 +110,8 @@ namespace GameMain
|
||||
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)
|
||||
{
|
||||
LoadAllConfig();
|
||||
|
Reference in New Issue
Block a user