public TweenSequence AppendTween(ITweenable tween) { if (tween is ITweenable) { tween.Resume(); tweenList.Add(tween as ITweenable); } else { Debug.LogError("Cannot add a tween to a sequence that does not implement ITweenable."); } return(this); }
public TweenChain AppendTween(ITweenable 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); }