예제 #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);
 }