public static void StopListening(string eventName, UnityAction <GameEventArgs> listener) { if (Instance == null) { return; } GameEvent thisEvent = null; if (Instance.eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.RemoveListener(listener); } }