コード例 #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));
        }