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

32 lines
937 B
C#
Raw 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(),
new ProcedureLoadAssembly(),
new ProcedureUpdateFinishState(),
},
typeof(ProcedureEntryState)
);
Destroy(gameObject);
}
}
}