| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | using Fort23.Core;namespace Fort23.Mono{    [UIBinding(prefab = "HeroBreakthroughFailPanel")]    public partial class HeroBreakthroughFailPanel : UIPanel    {        private void Init()        {        }        protected override void AddEvent()        {        }        protected override void DelEvent()        {        }        public override void AddButtonEvent()        {            Btn_Close.onClick.AddListener(() => { UIManager.Instance.HideUIUIPanel(this); });        }        public void CustomInit(int type, int xw)        {            if (type == 2)            {                Icon_Tu.gameObject.SetActive(true);                Icon_Dj.gameObject.SetActive(false);            }            else if (type == 3)            {                Icon_Tu.gameObject.SetActive(false);                Icon_Dj.gameObject.SetActive(true);            }            Text_Xw.text = "修为-" + xw;        }        public static async CTask<HeroBreakthroughFailPanel> OpenPanel(int type, int xw)        {            HeroBreakthroughFailPanel heroBreakthroughFailPanel = await UIManager.Instance.LoadAndOpenPanel<HeroBreakthroughFailPanel>(null, UILayer.Top,isShowBG:true);            heroBreakthroughFailPanel.CustomInit(type, xw);            return heroBreakthroughFailPanel;        }    }}
 |