using UnityEngine.Events; using UnityEngine; /// /// This class is used for Item interaction events. /// Example: Pick up an item passed as paramater /// [CreateAssetMenu(menuName = "Events/UI/Item Event Channel")] public class ItemEventChannelSO : ScriptableObject { public UnityAction OnEventRaised; public void RaiseEvent(ItemSO item) { if (OnEventRaised != null) OnEventRaised.Invoke(item); } }