using System.Collections; using System.Collections.Generic; using UnityEngine; public class JBQ_Test : MonoBehaviour { // Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.P)) { ///1.遮罩转场面板显示 //UIManager.Instance.ShowPanel(E_UI_Layer.System, (panel) => //{ // panel.Init(); //}); ///2.任务书显示测试 //UIManager.Instance.ShowPanel(E_UI_Layer.System, (panel) => //{ // panel.Init(); //}); ///3.接受任务书面板 //UIManager.Instance.ShowPanel(E_UI_Layer.System, (panel) => //{ // panel.Init(); //}); UIManager.Instance.ShowPanel(E_UI_Layer.System, (panel) => { panel.Init(); }); } if (Input.GetKeyDown(KeyCode.L)) { ///遮罩转场面板渐隐命令 EventCenter.Instance.EventTrigger(Enum_EventType.HideMask); } } }