Unity3d退出脚本(响应android的返回按钮)
【专业移动app开发,定制开发.主力提供iOS,Andorid系统软件.快速开发,质量保证.拥有专业界面设计人员,界面分析人员.给
您一个不一样的 3d app.web 3d、webGL、flash 3d、app 三维动画 unity3d app unity3d 公司宣传 虚拟现实 产品360度展
示 app 手机应用开发:北京贝武易科技公司 热线电话:18600160534】 有疑问请联系我QQ:1539988257 贝武易-APP 3D技术联盟机构,提供研究、交流和培训机会,欢迎加入。 贝武易-unity3d app技术联盟群:49771294
#pragma strict
function Start () {
}
function Update () { if(Input.GetKey(KeyCode.Escape)){ Application.Quit(); } }
function OnGUI () {// Make a background box GUI.Box (Rect (10,10,100,90), "Loader Menu"); // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed if (GUI.Button (Rect (20,40,80,20), "Level 1")) { Application.LoadLevel (1); }
// Make the second button. if (GUI.Button (Rect (20,70,80,20), "Level 2")) { Application.LoadLevel (2); } }