using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class TestScene1Manager : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if (Input.GetKeyDown("v")) { Bootstrap.Instance.uiManager.ShowPanel(E_UI_Layer.System, (panel) => { ///2 为进度条速度 Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 1f); Bootstrap.Instance.scenesManager.LoadSceneAsyn("TestScene", () => { Debug.Log("加载TestScene 场景成功"); ///5 为进度条速度 Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 5f); }); }); } } }