| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | namespace Fort23.Mono{    [UIBinding(prefab = "CombatPuasePanel")]    public partial class CombatPuasePanel : UIPanel    {        private System.Action<bool> callBack;        public static async void OpenCombatPuasePanel(System.Action<bool> callBack)        {            CombatPuasePanel combatPuasePanel =                await UIManager.Instance.LoadAndOpenPanel<CombatPuasePanel>(null, UILayer.Top, isFocus: true);            combatPuasePanel.ShowUI(callBack);        }        public void ShowUI(System.Action<bool> 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);            });        }    }}
 |