Ejemplo n.º 1
0
        public GPUFloatValueAnimator(float from, float to, IEnumerable <IBindingItem> bindingPath)
        {
            _to          = to;
            _from        = from;
            _bindingPath = bindingPath;

            _valueAnimator         = new FloatValueAnimator(from, to);
            _valueAnimator.Update += OnInnerAnimatorUpdate;

            _coreAnimation = null;
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (!_isDisposed)
            {
                _bindingPath = null;

                _valueAnimator.Dispose();
                _valueAnimator = null;

                _coreAnimation?.Dispose();
                _coreAnimation = null;

                this.Update          = null;
                this.AnimationEnd    = null;
                this.AnimationCancel = null;
            }

            _isDisposed = true;
        }