using UnityEngine;
using UnityEngine.Events;
///
/// This class is used for Events that have one int argument.
/// Example: An Achievement unlock event, where the int is the Achievement ID.
///
[CreateAssetMenu(menuName = "Events/Int Event Channel")]
public class IntEventChannelSO : EventChannelBaseSO
{
public UnityAction OnEventRaised;
public void RaiseEvent(int value)
{
if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
}