void OkButtonClick() { if (IsOpening) { return; } _okButton.interactable = !_notInteractableWhenPressed; ConfirmedEvent?.Invoke(ConfirmTypes.Ok); }
void CloseButtonClick() { if (IsOpening) { return; } if (IsClosing) { return; } if (!_okButton.enabled) { return; } ConfirmedEvent?.Invoke(ConfirmTypes.Close); CloseConfirm(); }
remove => RemoveHandler(ConfirmedEvent, value);
add => AddHandler(ConfirmedEvent, value);
void OnConfirmed() { ConfirmedEvent?.Invoke(Type, Level); }