Esempio n. 1
0
        public static TweenWrapper Sequence(params TweenBase[] tweens)
        {
            Assert.IsTrue(tweens.Length > 0);

            TweenWrapper wrapper     = new TweenWrapper(null);
            TweenBase    first_tween = tweens[0];

            wrapper.Add(first_tween);
            Link(tweens);

            return(wrapper);
        }
Esempio n. 2
0
        public static TweenWrapper Wrap(params TweenBase[] tweens)
        {
            Assert.IsTrue(tweens.Length > 0);

            TweenWrapper wrapper = new TweenWrapper(null);

            foreach (var tween in tweens)
            {
                wrapper.Add(tween);
            }
            return(wrapper);
        }
Esempio n. 3
0
 public static TweenWrapper SetCancelWhenOneCanceled(this TweenWrapper tween, bool value)
 {
     tween.cancelAllWhenOneCanceled = value;
     return(tween);
 }
Esempio n. 4
0
 public static TweenWrapper SetFinishAllWhenTimeout(this TweenWrapper tween, bool value)
 {
     tween.finishAllWhenTimeout = value;
     return(tween);
 }
Esempio n. 5
0
 public static TweenWrapper SetTimeLimit(this TweenWrapper tween, float time_limit)
 {
     tween.timeLimit = time_limit;
     return(tween);
 }
Esempio n. 6
0
 public static TweenWrapper SetRepeat(this TweenWrapper tween, int repeat_cnt)
 {
     tween.repeatCnt = repeat_cnt;
     return(tween);
 }