Пример #1
0
        public void AddValueCallback <T>(LottieProperty property, ILottieValueCallback <T> callback)
        {
            if (_transform.ApplyValueCallback(property, callback))
            {
                return;
            }

            if (property == LottieProperty.RepeaterCopies)
            {
                _copies.SetValueCallback((ILottieValueCallback <float?>)callback);
            }
            else if (property == LottieProperty.RepeaterOffset)
            {
                _offset.SetValueCallback((ILottieValueCallback <float?>)callback);
            }
        }
Пример #2
0
 public void AddValueCallback <T>(LottieProperty property, ILottieValueCallback <T> callback)
 {
     _transformAnimation?.ApplyValueCallback(property, callback);
 }