using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; [Serializable] public class Mission { public string content; } public class UI_CheckTaskPanel : BasePanel { public override void ShowMe() { base.ShowMe(); GameManager.EventMgr.EventTrigger(Enum_EventType.PlayerCanMove, false); } public override void HideMe() { base.HideMe(); GameManager.EventMgr.EventTrigger(Enum_EventType.PlayerCanMove, true); } public void Init() { Mission jsonData = GameManager.JsonMgr.LoadData($"MissionData/{GameManager.RunModelMgr.schemeID.ToString()}"); GetControl("Text_Content").text = jsonData.content; } protected override void OnClick(string btnName) { switch (btnName) { case "Button_Close": GameManager.UIMgr.HidePanel(); break; } } }