Esempio n. 1
0
        /// <summary>
        /// lets the popup succeed
        /// </summary>
        public virtual void ExecuteSucceed()
        {
            if (!Interactable)
            {
                return;
            }

            Interactable = false;
            SucceedEvent?.Invoke();
            Destroy();
        }
Esempio n. 2
0
 /// <summary>
 /// Invokes the <see cref="SucceedEvent"/>
 /// </summary>
 protected void ExecuteSucceedEvent()
 {
     SucceedEvent?.Invoke();
 }