public void ChangeWidth(float x) { LevelWidth = (int)x; layout.UpdateLevelWidth(LevelWidth); UpdateSize(); }