using GameLogic.Combat; using GameLogic.Combat.CombatType; namespace Fort23.Mono { [UIBinding(prefab = "CombatPuasePanel")] public partial class CombatPuasePanel : UIPanel { private System.Action callBack; public static async void OpenCombatPuasePanel(System.Action callBack) { CombatPuasePanel combatPuasePanel = await UIManager.Instance.LoadAndOpenPanel(null, UILayer.Top, isFocus: true); combatPuasePanel.ShowUI(callBack); } public void ShowUI(System.Action callBack) { this.callBack = callBack; } private void Init() { } protected override void AddEvent() { } protected override void DelEvent() { } public override void AddButtonEvent() { JiXu.onClick.AddListener(() => { UIManager.Instance.HideUIUIPanel(this); callBack.Invoke(false); }); TuiChu.onClick.AddListener(() => { UIManager.Instance.HideUIUIPanel(this); callBack.Invoke(true); }); XiangQing.onClick.AddListener(() => { LevelBattleCombatType levelBattleCombatType = CombatDrive.Instance.CombatController.CombatTypeBasic as LevelBattleCombatType; BossInfoPanel.OpenPanel(levelBattleCombatType.levelbattleConfig.ID, EventSystemManager.Instance.CurrentEventList); }); } } }