| | |
| | | public static Action<bool> OnToggleSingleConfirmEvent; |
| | | public static Action<bool, bool> OnToggleConfirmEventEx; |
| | | //带toggle的确认和取消 |
| | | public static void ToggleConfirmCancel(string title, string content, string toggleTxt, Action<bool, bool> func, bool _toggle = false) |
| | | public static void ToggleConfirmCancel(string title, string content, string toggleTxt, Action<bool, bool> func, string okName = "", bool _toggle = false) |
| | | { |
| | | generalTitle = title; |
| | | generalContent = content; |
| | |
| | | OnToggleSingleConfirmEvent = null; |
| | | OnToggleConfirmEvent = func; |
| | | toggleOpenState = _toggle; |
| | | OKName = null; |
| | | OKName = okName; |
| | | CancelName = null; |
| | | if (!UIManager.Instance.IsOpened<ToggleConfirmWin>()) |
| | | { |