Beispiel #1
0
 public void RemoveListenerToAnnotateEndSensorBookmarkEvent(UnityAction <string> listener)
 {
     if (AnnotateEndSensorBookmarkEvent != null)
     {
         AnnotateEndSensorBookmarkEvent.RemoveListener(listener);
     }
 }
Beispiel #2
0
    public static void StopListening(string eventName, UnityAction <string> listener)
    {
        if (eventManager == null)
        {
            return;
        }

        UnityEventString thisEvent = null;

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