using System.Collections.Generic; using UnityEngine; using YooAsset; public class Boot : SingletonMono { public List DepDlls = new List() { "mscorlib.dll", "System.dll", "System.Core.dll", "Mirror.dll" }; 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"); } }