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/Float Event Channel")] public class FloatEventChannelSO : EventChannelBaseSO { public UnityAction OnEventRaised; public void RaiseEvent(float value) { if (OnEventRaised != null) OnEventRaised.Invoke(value); } }