namespace Zinnia.Event.Proxy { using UnityEngine.Events; using Zinnia.Extension; /// /// Emits a UnityEvent with a no payload whenever the Receive method is called. /// public class EmptyEventProxyEmitter : EventProxyEmitter { /// /// Is emitted when Receive is called. /// public UnityEvent Emitted = new UnityEvent(); /// /// Attempts to emit the Emitted event. /// public virtual void Receive() { if (!this.IsValidState() || !IsValid()) { return; } Emitted?.Invoke(); } } }