32 lines
937 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|