AlicizaX/Client/Assets/Scripts/Startup/ProcedureEntry.cs

34 lines
965 B
C#
Raw Permalink Normal View History

2025-11-18 16:15:26 +08:00
using System;
using System.Collections.Generic;
using AlicizaX;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace Unity.Startup.Procedure
{
public class ProcedureEntry : MonoBehaviour
{
private async UniTaskVoid Start()
{
await UniTask.WaitUntil(() => YooAsset.YooAssets.Initialized);
GameApp.Procedure.InitializeProcedure(
new List<IProcedure>
{
new ProcedureEntryState(),
new ProcedureGetAppVersionInfoState(),
new ProcedureInitPackageState(),
new ProcedureDownloadBundleState(),
new ProcedurePatchDoneState(),
2026-04-14 11:24:09 +08:00
#if ENABLE_HYBRIDCLR
2025-11-18 16:15:26 +08:00
new ProcedureLoadAssembly(),
2026-04-14 11:24:09 +08:00
#endif
2025-11-18 16:15:26 +08:00
new ProcedureUpdateFinishState(),
},
typeof(ProcedureEntryState)
);
Destroy(gameObject);
}
}
}