/// <summary> /// lets the popup succeed /// </summary> public virtual void ExecuteSucceed() { if (!Interactable) { return; } Interactable = false; SucceedEvent?.Invoke(); Destroy(); }
/// <summary> /// Invokes the <see cref="SucceedEvent"/> /// </summary> protected void ExecuteSucceedEvent() { SucceedEvent?.Invoke(); }