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; }
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; }