public static SpriteAlphaTween createAlphaTween(SmartSprite spr, float end = 0, float time = 1, Action done = null, PennerDoubleAnimation.EquationType e = PennerDoubleAnimation.EquationType.Linear) { SpriteAlphaTween t = new SpriteAlphaTween(time, spr, end, done, e); TweenManager.Add(t); return(t); }
public static ShapeScaleTween createShapeTween(Shape shp, float end = 1, float time = 1, Action done = null, PennerDoubleAnimation.EquationType e = PennerDoubleAnimation.EquationType.Linear) { ShapeScaleTween t = new ShapeScaleTween(time, shp, end, done, e); TweenManager.Add(t); return(t); }
protected void Tween(ITween tween) { tweenManager.Add(tween); }