This commit is contained in:
2025-11-03 00:24:36 +08:00
parent 23eecc60c8
commit 3ba6a928cd
1030 changed files with 218646 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using UnityEngine;
using UnityEngine.SceneManagement;
using YooAsset;
public class Boot : MonoBehaviour
{
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");
}
}