コード例 #1
0
        /// <inheritdoc />
        public override void Disable()
        {
            base.Disable();

            if (observer != null)
            {
                observer.ValueChanged -= OnObserverValueChanged;
                observer = null;
            }
        }
コード例 #2
0
        /// <inheritdoc />
        public override void Enable()
        {
            base.Enable();

            var target = Target;

            if (target != null)
            {
                observer = new RangeSliderValueMinObserver {
                    Target = target
                };
                observer.ValueChanged += OnObserverValueChanged;
            }
        }