public static void StopListening(string eventName, UnityAction <float> listener) { if (eventManager == null) { return; } UnityEventFloat thisEvent = null; if (instance.eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.RemoveListener(listener); } }