Пример #1
0
        void OkButtonClick()
        {
            if (IsOpening)
            {
                return;
            }

            _okButton.interactable = !_notInteractableWhenPressed;
            ConfirmedEvent?.Invoke(ConfirmTypes.Ok);
        }
Пример #2
0
        void CloseButtonClick()
        {
            if (IsOpening)
            {
                return;
            }

            if (IsClosing)
            {
                return;
            }

            if (!_okButton.enabled)
            {
                return;
            }

            ConfirmedEvent?.Invoke(ConfirmTypes.Close);
            CloseConfirm();
        }
Пример #3
0
 remove => RemoveHandler(ConfirmedEvent, value);
Пример #4
0
 add => AddHandler(ConfirmedEvent, value);
Пример #5
0
 void OnConfirmed()
 {
     ConfirmedEvent?.Invoke(Type, Level);
 }