using UnityEngine.Events; using UnityEngine; /// /// 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/Bool Event Channel")] public class BoolEventChannelSO : ScriptableObject { public UnityAction OnEventRaised; public void RaiseEvent(bool value) { if (OnEventRaised != null) OnEventRaised.Invoke(value); } }