using System.Collections; using System.Collections.Generic; using UnityEngine; public class InitialTaskUIShow : SingletonMono { public static bool isShown = false; // Start is called before the first frame update public void Init() { isShown = false; GameManager.EventMgr.AddEventListener(Enum_EventType.EnterSceneInitialDisplayTaskUI, InitTaskUI); } public void InitTaskUI( ) { if (!isShown) { isShown = true; //if (GameManager.MissionMgr.mission == null) // GameManager.MissionMgr.Init(); GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, (p) => { p.Init(); }); } else { Debug.Log("任务面板已显示"); } } }