AlicizaX/Client/Assets/Scripts/Startup/Framework/Procedure/ProcedureGameLauncherState.cs

26 lines
545 B
C#
Raw Normal View History

2025-01-23 19:06:48 +08:00
using Cysharp.Threading.Tasks;
using AlicizaX.Fsm.Runtime;
using UnityEngine;
2025-04-28 19:45:45 +08:00
using YooAsset;
2025-01-23 19:06:48 +08:00
namespace Unity.Startup.Procedure
{
/// <summary>
/// 启动热更新游戏
/// </summary>
2025-04-28 19:45:45 +08:00
public sealed class ProcedureGameLauncherState : StateBase<UpdateProcedureState>
2025-01-23 19:06:48 +08:00
{
2025-04-28 19:45:45 +08:00
protected override void OnEnter()
2025-01-23 19:06:48 +08:00
{
2025-04-28 19:45:45 +08:00
base.OnEnter();
2025-01-23 19:06:48 +08:00
Start();
}
private async void Start()
{
await UniTask.DelayFrame();
LauncherUIHandler.Dispose();
}
}
2025-04-28 19:45:45 +08:00
}