예제 #1
0
        /// <summary>
        /// lets the popup succeed
        /// </summary>
        public virtual void ExecuteSucceed()
        {
            if (!Interactable)
            {
                return;
            }

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