예제 #1
0
        internal static MoveTween GetMoveTween(Transform obj, Transform to, float t)
        {
            MoveTween tween;

            if (TryGetTween(moveTweens, out tween))
            {
                tween.Init(obj, to, t);
            }
            else
            {
                tween = new MoveTween(obj, to, t, GenerateId());
            }

            _activeTweens.Add(tween);
            return(tween);
        }
예제 #2
0
        public BaseTween Move(Transform obj, Transform to, float t)
        {
            MoveTween tween = new MoveTween(obj, to, t, GenerateId());

            return(ProcessTween(tween));
        }
예제 #3
0
        public BaseTween Move(Transform obj, Transform to, float t)
        {
            MoveTween tween = TweenPool.GetMoveTween(obj, to, t);

            return(ProcessTween(tween));
        }