示例#1
0
        void Register(Flow f = default(Flow))
        {
            var unityEvent = eventInput.value as UnityEventBase;

            if (unityEvent != null)
            {
                reflectedEvent.StopListening(unityEvent, OnEventRaised);
                reflectedEvent.StartListening(unityEvent, OnEventRaised);
            }
        }
示例#2
0
 public override void OnGraphStoped()
 {
     if (autoHandleRegistration)
     {
         var unityEvent = eventInput.value as UnityEventBase;
         if (unityEvent != null)
         {
             reflectedEvent.StopListening(unityEvent, OnEventRaised);
         }
     }
 }
 public override void OnGraphStoped()
 {
     if (unityEvent != null)
     {
         reflectedEvent.StopListening(unityEvent, OnEventRaised);
     }
 }