public static ITween To( Tweener <Rect> .Getter currValueGetter, Tweener <Rect> .Setter setter, Tweener <Rect> .Getter finalValueGetter, float duration, Tweener <Rect> .Validation validation = null ) { InterpolationTween tween = new InterpolationTween(); tween.Add(new RectTweener(currValueGetter, setter, finalValueGetter, duration, validation)); return(tween); }
public static ITween To( Tweener <Vector3> .Getter currValueGetter, Tweener <Vector3> .Setter setter, Tweener <Vector3> .Getter finalValueGetter, RotationMode rotationMode, float duration, Tweener <Vector3> .Validation validation = null ) { InterpolationTween tween = new InterpolationTween(); tween.Add(new Vector3RotationTweener(currValueGetter, setter, finalValueGetter, rotationMode, duration, validation)); return(tween); }
public static ITween To( Tweener <Color> .Getter[] currValueGetter, Tweener <Color> .Setter[] setter, Tweener <Color> .Getter[] finalValueGetter, float duration, Tweener <Color> .Validation validation = null ) { InterpolationTween tween = new InterpolationTween(); for (int i = 0; i < currValueGetter.Length; ++i) { if (setter.Length > i && finalValueGetter.Length > i) { tween.Add(new ColorTweener(currValueGetter[i], setter[i], finalValueGetter[i], duration, validation)); } } return(tween); }