示例#1
0
        public static Tweener <Color, ColorHelper> DoAlpha(this Text target, float endValue, float duration, bool scalable = true)
        {
            Color destColor = target.color;

            destColor.a = endValue;

            return(TweenMgr.To(() => target.color
                               , x => { target.color = x; }
                               , destColor, duration, scalable));
        }
示例#2
0
 public static Tweener <Vector2, _V2Helper> DoAnchorPos(this RectTransform target, Vector2 endValue, float duration, bool scalable = true)
 {
     return(TweenMgr.To(() => target.anchoredPosition, x => target.anchoredPosition = x, endValue, duration, scalable));
 }
示例#3
0
 public static Tweener <Vector3, _V3Helper> DoScale(this Image target, Vector3 endValue, float duration, bool scalable = true)
 {
     return(TweenMgr.To(() => target.transform.localScale, x => target.transform.localScale = x, endValue, duration, scalable));
 }
示例#4
0
 public static Tweener <Vector2, _V2Helper> DoSize(this Image target, Vector2 endValue, float duration, bool scalable = true)
 {
     return(TweenMgr.To(() => target.rectTransform.sizeDelta, x => target.rectTransform.sizeDelta = x, endValue, duration, scalable));
 }
示例#5
0
 public static Tweener <Vector3, _V3Helper> DoMove(this Transform target, Vector3 endValue, float duration, bool scalable = true)
 {
     return(TweenMgr.To(() => target.transform.position, x => target.transform.position = x, endValue, duration, scalable));
 }
示例#6
0
 ///---
 public static Tweener <Color, ColorHelper> DoColor(this SpriteRenderer target, Color endValue, float duration, bool scalable = true)
 {
     return(TweenMgr.To(() => target.color
                        , x => { target.color = x; }
                        , endValue, duration, scalable));
 }