using UnityEngine.Events; using UnityEngine; /// /// This class is used for Events to toggle the interaction UI. /// Example: Dispaly or hide the interaction UI via a bool and the interaction type from the enum via int /// [CreateAssetMenu(menuName = "Events/Toogle Interaction UI Event Channel")] public class InteractionUIEventChannelSO : DescriptionBaseSO { public UnityAction OnEventRaised; public void RaiseEvent(bool state, InteractionType interactionType) { if (OnEventRaised != null) OnEventRaised.Invoke(state, interactionType); } }