public static Tweener DoColor(this SpriteRenderer target, Color endColor, float variable)
        {
            Tweener t = new SpriteColorTweener(target, endColor, variable);

            t.DoTween();
            return(t);
        }
Пример #2
0
        /// <summary>
        /// SpriteRenderer 颜色
        /// </summary>
        /// <param name="target"></param>
        /// <param name="endColor"></param>
        /// <param name="variable"></param>
        /// <returns></returns>
        public static Tweener DoColor(this SpriteRenderer target, Color endColor, float variable)
        {
            Tweener t = new SpriteColorTweener(target, endColor, variable);

            TweenManager.Instance.AddTween(t);
            return(t);
        }