Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private var bWidth = Screen.width/4;
- private var bHeight = bWidth/2;
- function Start () {
- }
- function Update () {
- }
- function OnGUI () {
- if (GUI.Button (Rect (Screen.width/2 -b Width/2, Screen.height/2 - bHeight, bWidth, bHeight), "Play")){
- Application.LoadLevel("YOUR GAME SCENE NAME HERE");
- }
- if (GUI.Button (Rect (Screen.width/2 -b Width/2, Screen.height/2 + bHeight, bWidth, bHeight), "Quit")){
- Application.Quit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement