using UnityEngine.Events;
using UnityEngine;
///
/// This class is used for Events that have one gameobject argument.
/// Example: A game object pick up event event, where the GameObject is the object we are interacting with.
///
[CreateAssetMenu(menuName = "Events/GameObject Event Channel")]
public class GameObjectEventChannelSO : ScriptableObject
{
public UnityAction OnEventRaised;
public void RaiseEvent(GameObject value)
{
if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
}