So I have 30 different functions all like this
public void level23()
{
theGame.levelSelected = 23;
}
This is what is called to setup the next level in game. I was wondering if there was a way for me to call this in a retry button by using something like this with theGame.levelSelected being an int
level + theGame.levelSelected();
this would save a rather long switch.