@Override
	public void update(Input input, int delta) {
		if(input.isKeyPressed(Input.KEY_SPACE)){
			setCurrentState(new JumpingState<Jori>());
		}
		else if(input.isKeyPressed(Input.KEY_LEFT)){
			setCurrentState(new WalkingState<Jori>());
			setDirection(DIRECTION.LEFT);
		}
		else if(input.isKeyPressed(Input.KEY_RIGHT)){
			setCurrentState(new WalkingState<Jori>());
			setDirection(DIRECTION.RIGHT);
		}
		else if(input.isKeyPressed(Input.KEY_UP)){
			setCurrentState(new WalkingState<Jori>());
			setDirection(DIRECTION.UP);
		}
		else if(input.isKeyPressed(Input.KEY_DOWN)){
			setCurrentState(new WalkingState<Jori>());
			setDirection(DIRECTION.DOWN);
		}
		
		currentState.update(this);

	}