public void update(final float delta) {
        if (transitionInProgress) {
            currentValue += (targetValue - initialValue) * delta / transitionLength;
            if (isInitialGreater) {
                if (currentValue <= targetValue) {
                    finalizeTransition();
                }
            } else {
                if (currentValue >= targetValue) {
                    finalizeTransition();
                }
            }
        }
    }
public void update ( final float delta ) { if ( transitionInProgress ) { currentValue += ( targetValue - initialValue ) * delta / transitionLength ; if ( isInitialGreater ) { if ( currentValue <= targetValue ) { finalizeTransition ( ) ; } } else { if ( currentValue >= targetValue ) { finalizeTransition ( ) ; } } } }
Updates current value as long as it doesn't match the target value.

@param delta time passed since the last update.