fix : when not looping, don't call multiple onAnimEnd + currentFrame will be set to maxFrames.