public UnityEventWatcher(Component component, string eventName, Action action)
 {
     this.component        = component;
     this.eventName        = eventName;
     this.action           = action;
     this.unityEventBinder = UnityEventBinderFactory.Create(GetBoundEvent(eventName, component).UnityEvent, action);
 }
示例#2
0
        public UnityEventWatcher(Component component, string eventName, Action action)
        {
            Assert.IsNotNull(component);
            Assert.IsFalse(string.IsNullOrEmpty(eventName));
            Assert.IsNotNull(action);

            unityEventBinder = UnityEventBinderFactory.Create(GetBoundEvent(eventName, component).UnityEvent, action);
        }
示例#3
0
 public UnityEventWatcher(Component component, string eventName, Action action)
 {
     unityEventBinder = UnityEventBinderFactory.Create(GetBoundEvent(eventName, component).UnityEvent, action);
 }