Exemple #1
0
        void Start()
        {
            if (_tween != null)
            {
                foreach (var next in nexts)
                {
                    _tween.AddNext(next.tween);
                }
            }
            BeforeStart();

            if (autoStart && _tween != null)
            {
                _tween.Begin();
            }
        }
Exemple #2
0
        public static TweenBase Link(params TweenBase[] tweens)
        {
            Assert.IsTrue(tweens.Length > 0);

            TweenBase last_tween = tweens[0];

            for (var i = 1; i < tweens.Length; i++)
            {
                var tween = tweens[i];
                if (last_tween != null)
                {
                    last_tween.AddNext(tween);
                }
                last_tween = tween;
            }
            return(last_tween);
        }