Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mySkin : GUISkin;
- function OnGUI () {
- // Custom GUI Skin
- GUI.skin = mySkin;
- // Make a group on the center of the screen
- GUI.BeginGroup (Rect (Screen.width / 2 - 10000, Screen.height / 2 - 80, 22000, 160));
- GUI.Box (Rect (-13882,0,24000,160), "Group is here");
- GUI.EndGroup ();
- // Clickable Buttons
- GUI.BeginGroup (Rect (Screen.width / 2 - 100, Screen.height / 2 - 80, 220, 160));
- GUI.Button (Rect (10,40,200,30), "Resume Game");
- GUI.Button (Rect (10,80,200,30), "Restart Checkpoint");
- GUI.Button (Rect (10,120,200,30), "Quit To Main Menu");
- GUI.EndGroup ();
- // Pause Menu Label
- GUI.BeginGroup (Rect (Screen.width / 2 - 85, Screen.height / 2 - 80, 220, 160));
- GUI.Label (Rect (0,10,200,60), "Pause Menu", "label");
- GUI.EndGroup ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement