public void draw(SpriteBatch sb) {		
		if(!pause) {
			frameNumber = (int) ((stateTime += Gdx.graphics.getDeltaTime()) / frameDuration);
			frameNumber = frameNumber % frames.length;
		}

		frames[frameNumber].draw(sb);
	}