| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 | using UnityEngine;#if false || EPO_DOTWEEN // MODULE_MARKERusing EPOOutline;using DG.Tweening.Plugins.Options;using DG.Tweening;using DG.Tweening.Core;namespace DG.Tweening{    public static class DOTweenModuleEPOOutline    {        public static int DOKill(this SerializedPass target, bool complete)        {            return DOTween.Kill(target, complete);        }        public static TweenerCore<float, float, FloatOptions> DOFloat(this SerializedPass target, string propertyName, float endValue, float duration)        {            var tweener = DOTween.To(() => target.GetFloat(propertyName), x => target.SetFloat(propertyName, x), endValue, duration);            tweener.SetOptions(true).SetTarget(target);            return tweener;        }        public static TweenerCore<Color, Color, ColorOptions> DOFade(this SerializedPass target, string propertyName, float endValue, float duration)        {            var tweener = DOTween.ToAlpha(() => target.GetColor(propertyName), x => target.SetColor(propertyName, x), endValue, duration);            tweener.SetOptions(true).SetTarget(target);            return tweener;        }        public static TweenerCore<Color, Color, ColorOptions> DOColor(this SerializedPass target, string propertyName, Color endValue, float duration)        {            var tweener = DOTween.To(() => target.GetColor(propertyName), x => target.SetColor(propertyName, x), endValue, duration);            tweener.SetOptions(false).SetTarget(target);            return tweener;        }        public static TweenerCore<Vector4, Vector4, VectorOptions> DOVector(this SerializedPass target, string propertyName, Vector4 endValue, float duration)        {            var tweener = DOTween.To(() => target.GetVector(propertyName), x => target.SetVector(propertyName, x), endValue, duration);            tweener.SetOptions(false).SetTarget(target);            return tweener;        }        public static TweenerCore<float, float, FloatOptions> DOFloat(this SerializedPass target, int propertyId, float endValue, float duration)        {            var tweener = DOTween.To(() => target.GetFloat(propertyId), x => target.SetFloat(propertyId, x), endValue, duration);            tweener.SetOptions(true).SetTarget(target);            return tweener;        }        public static TweenerCore<Color, Color, ColorOptions> DOFade(this SerializedPass target, int propertyId, float endValue, float duration)        {            var tweener = DOTween.ToAlpha(() => target.GetColor(propertyId), x => target.SetColor(propertyId, x), endValue, duration);            tweener.SetOptions(true).SetTarget(target);            return tweener;        }        public static TweenerCore<Color, Color, ColorOptions> DOColor(this SerializedPass target, int propertyId, Color endValue, float duration)        {            var tweener = DOTween.To(() => target.GetColor(propertyId), x => target.SetColor(propertyId, x), endValue, duration);            tweener.SetOptions(false).SetTarget(target);            return tweener;        }        public static TweenerCore<Vector4, Vector4, VectorOptions> DOVector(this SerializedPass target, int propertyId, Vector4 endValue, float duration)        {            var tweener = DOTween.To(() => target.GetVector(propertyId), x => target.SetVector(propertyId, x), endValue, duration);            tweener.SetOptions(false).SetTarget(target);            return tweener;        }        public static int DOKill(this Outlinable.OutlineProperties target, bool complete = false)        {            return DOTween.Kill(target, complete);        }        public static int DOKill(this Outliner target, bool complete = false)        {            return DOTween.Kill(target, complete);        }        /// <summary>        /// Controls the alpha (transparency) of the outline        /// </summary>        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;        }        /// <summary>        /// Controls the color of the outline        /// </summary>        public static TweenerCore<Color, Color, ColorOptions> DOColor(this Outlinable.OutlineProperties target, Color endValue, float duration)        {            var tweener = DOTween.To(() => target.Color, x => target.Color = x, endValue, duration);            tweener.SetOptions(false).SetTarget(target);            return tweener;        }        /// <summary>        /// Controls the amount of blur applied to the outline        /// </summary>        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;        }        /// <summary>        /// Controls the amount of blur applied to the outline        /// </summary>        public static TweenerCore<float, float, FloatOptions> DOBlurShift(this Outliner 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;        }        /// <summary>        /// Controls the amount of dilation applied to the outline        /// </summary>        public static TweenerCore<float, float, FloatOptions> DODilateShift(this Outlinable.OutlineProperties target, float endValue, float duration, bool snapping = false)        {            var tweener = DOTween.To(() => target.DilateShift, x => target.DilateShift = x, endValue, duration);            tweener.SetOptions(snapping).SetTarget(target);            return tweener;        }        /// <summary>        /// Controls the amount of dilation applied to the outline        /// </summary>        public static TweenerCore<float, float, FloatOptions> DODilateShift(this Outliner target, float endValue, float duration, bool snapping = false)        {            var tweener = DOTween.To(() => target.DilateShift, x => target.DilateShift = x, endValue, duration);            tweener.SetOptions(snapping).SetTarget(target);            return tweener;        }    }}#endif
 |