public static void StopListening(string eventName, UnityAction <System.Object> listener) { if (eventManager == null) { return; } UEvent thisEvent = null; if (Instance.eventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.RemoveListener(listener); } }
public void RemoveListener(UnityAction <IUEventData> unityAction) { _uEvent.RemoveListener(unityAction); }