2025-11-03 12:03:21 +08:00
|
|
|
using System.Collections.Generic;
|
2025-11-03 00:24:36 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
using YooAsset;
|
|
|
|
|
|
2025-11-03 12:03:21 +08:00
|
|
|
public class Boot : SingletonMono<Boot>
|
2025-11-03 00:24:36 +08:00
|
|
|
{
|
2025-11-03 12:03:21 +08:00
|
|
|
public List<string> DepDlls = new List<string>()
|
|
|
|
|
{
|
|
|
|
|
"mscorlib.dll",
|
|
|
|
|
"System.dll",
|
|
|
|
|
"System.Core.dll",
|
|
|
|
|
"Mirror.dll"
|
|
|
|
|
};
|
2025-11-03 00:24:36 +08:00
|
|
|
public GameObject MainUICanvas;
|
|
|
|
|
public Camera UICamera;
|
|
|
|
|
public EPlayMode PlayMode = EPlayMode.EditorSimulateMode;
|
|
|
|
|
void Awake()
|
|
|
|
|
{
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
|
PlayerPrefs.DeleteAll();
|
|
|
|
|
#endif
|
|
|
|
|
Application.targetFrameRate = 60;
|
|
|
|
|
Application.runInBackground = true;
|
|
|
|
|
}
|
|
|
|
|
async void Start()
|
|
|
|
|
{
|
|
|
|
|
GameManager.Inst.UICamera = UICamera;
|
|
|
|
|
GameManager.Inst.MainUICanvas = MainUICanvas;
|
|
|
|
|
bool updateSuccess = await PatchManager.Inst.StartOperation(PlayMode);
|
|
|
|
|
if (updateSuccess)
|
|
|
|
|
EnterGame();
|
|
|
|
|
}
|
|
|
|
|
private void EnterGame()
|
|
|
|
|
{
|
|
|
|
|
Debug.Log("EnterGame");
|
|
|
|
|
}
|
|
|
|
|
}
|