Exemple #1
0
        internal static Vector2Tween GetVector2Tween(Vector2 from, Vector2 to, float t)
        {
            Vector2Tween tween;

            if (TryGetTween(vector2Tweens, out tween))
            {
                tween.Init(from, to, t);
            }
            else
            {
                tween = new Vector2Tween(from, to, t, GenerateId());
            }

            _activeTweens.Add(tween);
            return(tween);
        }
Exemple #2
0
        public BaseTween VectorTween(Vector2 from, Vector2 to, float t)
        {
            Vector2Tween tween = TweenPool.GetVector2Tween(from, to, t);

            return(ProcessTween(tween));
        }
        public BaseTween VectorTween(Vector2 from, Vector2 to, float t)
        {
            Vector2Tween tween = new Vector2Tween(from, to, t, GenerateId());

            return(ProcessTween(tween));
        }