var customSkin:GUISkin;
function OnGUI () {
if(GUI.Button(Rect(Screen.width/2-50, Screen.height/2+200, 100,50), "Play game"))
{
print("You clicked me");
Application.LoadLevel(1);
}
//GUI.Button(Rect(Screen.width/2-50, Screen.height/2+260, 100,50), "exit game");
if(GUI.Button(Rect(Screen.width/2-50, Screen.height/2+260, 100,50), "exit game"))
{
print("You clicked me");
Application.LoadLevel(2);
}
}
}
学着习中