Пример #1
0
        public static TweenerCore <Color, Color, ColorOptions> DOFade(this Outlinable.OutlineProperties target, float endValue, float duration)
        {
            var tweener = DOTween.ToAlpha(() => target.Color, x => target.Color = x, endValue, duration);

            tweener.SetOptions(true).SetTarget(target);
            return(tweener);
        }
Пример #2
0
        public static TweenerCore <float, float, FloatOptions> DOBlurShift(this Outlinable.OutlineProperties target, float endValue, float duration, bool snapping = false)
        {
            var tweener = DOTween.To(() => target.BlurShift, x => target.BlurShift = x, endValue, duration);

            tweener.SetOptions(snapping).SetTarget(target);
            return(tweener);
        }
Пример #3
0
 public static int DOKill(this Outlinable.OutlineProperties target, bool complete = false)
 {
     return(DOTween.Kill(target, complete));
 }