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); }
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); }
public UnityEventWatcher(Component component, string eventName, Action action) { unityEventBinder = UnityEventBinderFactory.Create(GetBoundEvent(eventName, component).UnityEvent, action); }