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 stack Event Channel")] public class ItemStackEventChannelSO : ScriptableObject { public UnityAction OnEventRaised; public void RaiseEvent(ItemStack item) { if (OnEventRaised != null) OnEventRaised.Invoke(item); } }