public static void StartListening(string eventName, UnityAction <string> listener) { SkillEvent currentEvent; if (Instance._events.TryGetValue(eventName, out currentEvent)) { currentEvent.AddListener(listener); } else { currentEvent = new SkillEvent(); currentEvent.AddListener(listener); Instance._events.Add(eventName, currentEvent); } }