Example #1
0
        public TweenParty addTween(ITweenControl tween)
        {
            tween.resume();
            _tweenList.Add(tween);

            return(this);
        }
Example #2
0
        public TweenChain appendTween(ITweenControl tween)
        {
            // make sure we have a legit ITweenable
            if (tween is ITweenable)
            {
                tween.resume();
                _tweenList.Add(tween as ITweenable);
            }
            else
            {
                Debug.LogError("attempted to add a tween that does not implement ITweenable to a TweenChain!");
            }

            return(this);
        }
Example #3
0
        public TweenParty addTween(ITweenControl tween)
        {
            // make sure we have a legit ITweenable
            if (tween is ITweenable)
            {
                // resume gets the tween into Playing mode so we can tick it
                tween.resume();
                _tweenList.Add(tween as ITweenable);
            }
            else
            {
                Debug.LogError("attempted to add a tween that does not implement ITweenable to a TweenParty!");
            }

            return(this);
        }