using System.Collections; using System.Collections.Generic; using UnityEngine; public class EventDelegateTrigger : MonoBehaviour { public delegate void OnActionHappened(); public event OnActionHappened onEvent; public void OnEventInvoke() { onEvent?.Invoke(); } }