unity的退出游戏方法
function OnGUI () { //quit if(GUI.Button(Rect(0,0,100,40),"退出")){ Application.Quit(); } }