Ejemplo n.º 1
0
 public static Tween TweenHeight(this ISprite sprite, float toHeight, float timeInSeconds, Func <float, float> easing = null)
 {
     return(Tween.Run(sprite.Height, toHeight, h => sprite.ScaleTo(sprite.Width, h), timeInSeconds, easing));
 }
Ejemplo n.º 2
0
 public static Tween TweenWidth(this ISprite sprite, float toWidth, float timeInSeconds, Func <float, float> easing = null)
 {
     return(Tween.Run(sprite.Width, toWidth, w => sprite.ScaleTo(w, sprite.Height), timeInSeconds, easing));
 }