using UnityEngine.Events; using UnityEngine; /// /// This class is used for Events that have one Int argument (Example: Achievement Unlock Event) /// [CreateAssetMenu(fileName = "IntGameEvent", menuName = "Game Event/Int")] public class IntGameEvent : ScriptableObject { public UnityAction eventRaised; public void Raise(int value) { eventRaised.Invoke(value); } }