/// <summary> /// adds a property tween that will start as soon as the current tween completes /// </summary> public Tween next(float duration, IGoKitLiteTweenProperty newPropertyTween) { var tween = GoKitLite.instance.nextAvailableTween(transform, duration, TweenType.Property); //tween.delay = delay; tween.easeFunction = easeFunction; tween.propertyTween = newPropertyTween; nextTween = tween; return(tween); }
public Tween propertyTween(IGoKitLiteTweenProperty propertyTween, float duration, float delay = 0, EaseFunction easeFunction = null) { var tween = nextAvailableTween(this.transform, duration, TweenType.Property); tween.delay = delay; tween.easeFunction = easeFunction; tween.propertyTween = propertyTween; tween.prepareForUse(); _activeTweens.Add(tween); return(tween); }
public Tween propertyTween( IGoKitLiteTweenProperty propertyTween, float duration, float delay = 0, EaseFunction easeFunction = null ) { var tween = nextAvailableTween( this.transform, duration, TweenType.Property ); tween.delay = delay; tween.easeFunction = easeFunction; tween.propertyTween = propertyTween; tween.prepareForUse(); _activeTweens.Add( tween ); return tween; }
/// <summary> /// adds a property tween that will start as soon as the current tween completes /// </summary> public Tween next( float duration, IGoKitLiteTweenProperty newPropertyTween ) { var tween = GoKitLite.instance.nextAvailableTween( transform, duration, TweenType.Property ); //tween.delay = delay; tween.easeFunction = easeFunction; tween.propertyTween = newPropertyTween; nextTween = tween; return tween; }