using UnityEngine.Events;
using UnityEngine;
///
/// This class is used for Events that have one transform argument.
/// Example: Spawn system initializes player and fire event, where the transform is the position of player.
///
[CreateAssetMenu(menuName = "Events/Transform Event Channel")]
public class TransformEventChannelSO : EventChannelBaseSO
{
public UnityAction OnEventRaised;
public void RaiseEvent(Transform value)
{
if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
}