I am trying to create a menu. I don't see what I am doing wrong. Here is my script. I am not worried about the resume section yet though.
function Start () {
}
function OnGUI() {
GUI.Box(Rect(0,0,100,90), "Menu");
if(GUI.Button(Rect(10,60,80,20), "Quit")) {
Application.Quit;
}
}
↧