Advertisement
Guest User

2

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