Ejemplo n.º 1
0
    public static void StopListeningObj(string eventName, UnityAction <GameObject> listener)
    {
        if (eventManager == null)
        {
            return;
        }
        ObjEvent thisEvent = null;

        if (instance.ObjEventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.RemoveListener(listener);
        }
    }
Ejemplo n.º 2
0
    public static void StopListening(ParameterizedGameEvent eventName, UnityAction <object> listener)
    {
        if (eventManager == null)
        {
            return;
        }
        ObjEvent thisEvent = null;

        if (instance.objEventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.RemoveListener(listener);
        }
    }