using UnityEngine; using UnityEngine.Events; /// /// This class is used for Events that have no arguments (Example: Exit game event) /// [CreateAssetMenu(fileName = "VoidGameEvent", menuName = "Game Event/Void")] public class VoidGameEvent : ScriptableObject { public UnityAction eventRaised; public void Raise() { if (eventRaised != null) eventRaised.Invoke(); } }