Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private var buttonWidth:int = 200;
- private var buttonHeigh:int = 50;
- private var spacing:int = 100;
- function OnGUI()
- {
- if (GUI.Button(Rect(Screen.width/2 - buttonWidth/2, Screen.heigth/2 - buttonHeigh/2 - spacing, buttonHeigh, buttonWidth), "New Game"))
- {
- Application.LoadLevel("gamelvl1");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment