//Jimmy Vegas Unity Tutorial //These scripts will create your GUI //Main Menu function PlayGame() { Application.LoadLevel(1); } function QuitGame() { Application.Quit(); } //Recycle function Start () { Application.LoadLevel(1); } //FlyOrQuit function OnGUI () { if (GUI.Button (Rect (Screen.width/2-120, Screen.height/2-50, 100, 30), "Fly Again")) { Application.LoadLevel(2); } if (GUI.Button (Rect (Screen.width/2, Screen.height-50, 100, 30), "Main Menu")) { Application.LoadLevel(0); } }