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(Item item)
{
if (OnEventRaised != null)
OnEventRaised.Invoke(item);
}
}