예제 #1
0
        public static TweenParallel parallel(params TweenBase[] tweens)
        {
            if (tweens == null)
            {
                throw new ArgumentNullException("tweens");
            }

            var parallelTween = new TweenParallel();

            foreach (var tween in tweens)
            {
                parallelTween.Add(tween);
            }
            return(parallelTween);
        }
예제 #2
0
        public static TweenParallel parallel(TweenBase tweenA, TweenBase tweenB)
        {
            if (tweenA == null)
            {
                throw new ArgumentNullException("tweenA");
            }

            if (tweenB == null)
            {
                throw new ArgumentNullException("tweenB");
            }

            var paralletTween = new TweenParallel();

            paralletTween.Add(tweenA);
            paralletTween.Add(tweenB);
            return(paralletTween);
        }