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); }
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); }
public static TweenWrapper SetCancelWhenOneCanceled(this TweenWrapper tween, bool value) { tween.cancelAllWhenOneCanceled = value; return(tween); }
public static TweenWrapper SetFinishAllWhenTimeout(this TweenWrapper tween, bool value) { tween.finishAllWhenTimeout = value; return(tween); }
public static TweenWrapper SetTimeLimit(this TweenWrapper tween, float time_limit) { tween.timeLimit = time_limit; return(tween); }
public static TweenWrapper SetRepeat(this TweenWrapper tween, int repeat_cnt) { tween.repeatCnt = repeat_cnt; return(tween); }