AlicizaX/Client/Assets/Scripts/Startup/Procedure/ProcedureEntry.cs
2025-11-19 13:05:11 +08:00

32 lines
937 B
C#

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(),
new ProcedureLoadAssembly(),
new ProcedureUpdateFinishState(),
},
typeof(ProcedureEntryState)
);
Destroy(gameObject);
}
}
}