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); }
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); }
public static int DOKill(this Outlinable.OutlineProperties target, bool complete = false) { return(DOTween.Kill(target, complete)); }