public static IntTween TweenValue(int from, int to, float duration = 0.5f) { TweenValueTarget <int> target = new TweenValueTarget <int>(from); IntTween tween = IntTween.Create(); tween.Initialize(target, to, duration); return(tween); }
public static FloatTween TweenValue(float from, float to, float duration = 0.5f) { TweenValueTarget <float> target = new TweenValueTarget <float>(from); FloatTween tween = FloatTween.Create(); tween.Initialize(target, to, duration); return(tween); }