public static Tweener DoMove(this RectTransform target, Vector3 endValue, float variable)
        {
            Tweener t = new RectTransformPositionTweener(target, endValue, variable);

            t.DoTween();
            return(t);
        }
Beispiel #2
0
        /// <summary>
        /// RectTransform 移动
        /// </summary>
        /// <param name="target"></param>
        /// <param name="endValue"></param>
        /// <param name="variable"></param>
        /// <returns></returns>
        public static Tweener DoMove(this RectTransform target, Vector3 endValue, float variable)
        {
            Tweener t = new RectTransformPositionTweener(target, endValue, variable);

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