예제 #1
0
        public virtual void Dispose(bool bIsDisposing)
        {
            if (this.mIsDisposed)
            {
                return;
            }

            if (bIsDisposing && this.mUnityEventBinder != null)
            {
                this.mUnityEventBinder.Dispose();
                this.mUnityEventBinder = null;
            }
            this.mIsDisposed = true;
        }
예제 #2
0
        public UnityEventWatcher(Component rComp, string rEventName, Action <EventArg> rAction)
        {
            var rBindableEvent = DataBindingTypeResolve.GetBoundEvent(rEventName, rComp);

            this.mUnityEventBinder = UnityEventBinderFactory.Create(rBindableEvent?.UnityEvent, rAction);
        }