Example #1
0
        /// <summary>
        /// Dismisses the popup (needs to be executed when the popup isnt sucsessfull but also didn't cancel)
        /// </summary>
        public virtual void ExecuteDismiss()
        {
            if (!Interactable)
            {
                return;
            }

            Interactable = false;
            DismissEvent?.Invoke();
            Destroy();
        }
Example #2
0
 private void DismissButtonOnclick()
 {
     DismissEvent?.Invoke(Quest);
     ToggleVisual(false);
 }