@Override
	public void update(int tick) {
		if (state == 2 || state == 1) {
			alpha += speed;
		} else if (alpha > 0.3f + speed) {
			alpha -= speed;
		}
		
		if (alpha > 1) alpha = 1;
		if (alpha < 0.3f) alpha = 0.3f;
	}