Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnGUI () {
- // Make a background box
- GUI.Box (Rect (10,10,300,90), "Do You Want To Go To the Next Level?");
- // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed
- if (GUI.Button (Rect (130,40,80,20), "Yeah")) {
- Application.LoadLevel(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement