Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mySkin : GUISkin;
  2.  
  3. function OnGUI () {
  4.     // Custom GUI Skin
  5.     GUI.skin = mySkin;
  6.  
  7.     // Make a group on the center of the screen
  8.     GUI.BeginGroup (Rect (Screen.width / 2 - 10000, Screen.height / 2 - 80, 22000, 160));
  9.         GUI.Box (Rect (-13882,0,24000,160), "Group is here");
  10.     GUI.EndGroup ();
  11.    
  12.         // Clickable Buttons
  13.     GUI.BeginGroup (Rect (Screen.width / 2 - 100, Screen.height / 2 - 80, 220, 160));
  14.         GUI.Button (Rect (10,40,200,30), "Resume Game");
  15.         GUI.Button (Rect (10,80,200,30), "Restart Checkpoint");
  16.         GUI.Button (Rect (10,120,200,30), "Quit To Main Menu");
  17.     GUI.EndGroup ();
  18.  
  19.     // Pause Menu Label
  20.     GUI.BeginGroup (Rect (Screen.width / 2 - 85, Screen.height / 2 - 80, 220, 160));
  21.         GUI.Label (Rect (0,10,200,60), "Pause Menu", "label");
  22.     GUI.EndGroup ();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement