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() { } 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 OpenPanel(int type, int xw) { HeroBreakthroughFailPanel heroBreakthroughFailPanel = await UIManager.Instance.LoadAndOpenPanel(null, UILayer.Top); heroBreakthroughFailPanel.CustomInit(type,xw); return heroBreakthroughFailPanel; } } }