示例#1
0
    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);
        }
    }
示例#2
0
 public void RemoveListener(UnityAction <IUEventData> unityAction)
 {
     _uEvent.RemoveListener(unityAction);
 }