Exemplo n.º 1
0
 public void AddListenerToAnnotateEndSensorBookmarkEvent(UnityAction <string> listener)
 {
     if (AnnotateEndSensorBookmarkEvent == null)
     {
         AnnotateEndSensorBookmarkEvent = new UnityEventString();
     }
     AnnotateEndSensorBookmarkEvent.AddListener(listener);
 }
Exemplo n.º 2
0
    public static void StartListening(string eventName, UnityAction <string> listener)
    {
        UnityEventString thisEvent;

        if (instance.eventParamDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.AddListener(listener);
        }
        else
        {
            thisEvent = new UnityEventString();
            thisEvent.AddListener(listener);
            instance.eventParamDictionary.Add(eventName, thisEvent);
        }
    }