December 2013
Beginner
320 pages
8h 22m
English
A new scene and a single script will serve us well in managing our level selection:
LevelSelect.LevelSelect.public int buttonSize = 100;
OnGUI function. This function starts with a loop. It will loop through three times for the three levels we should have created earlier. A Rect variable is created and initialized to the buttonSize. The x and y values are then set to position the buttons in a row, centered on the screen. Next, ...Read now
Unlock full access