protected void updateTransition(Transition t, float delta) {
		
		switch (t.type) {
			
			case (Transition.TYPE_FADEIN): {
				alpha = MathUtils.clamp(t.runningTime/t.duration, 0, 1);
				break;
			}
			case (Transition.TYPE_FADEOUT): {
				alpha = MathUtils.clamp(1-(t.runningTime/t.duration), 0, 1);
				break;
			}
			case (Transition.TYPE_ROTATION): {
				rotation += (t.speed*delta*60);
				break;
			}
			case (Transition.TYPE_MOVE): {
				float movX = (t.toX/t.duration)*t.runningTime;
				float movY = (t.toY/t.duration)*t.runningTime;
				position.set(t.fromX+movX, t.fromY+movY);
				break;
			}
			case (Transition.TYPE_RESIZE): {
				float dstScale = t.toValue-t.fromValue;
				float movScale = (dstScale/t.duration)*t.runningTime;
				scale = t.fromValue+movScale;
				break;
			}
		}
	}