application.quit 退出

2014-12-31 08:58| 发布者: 杨炎| 查看: 5606| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: application.quit 退出static functionquit() : voiddescription描述quits the player application. quit is ignored in the editor or the web player.退出应用程序。在编辑器或者web播放器中退出被忽略。important ...

application.quit 退出

static functionquit() : void

description描述

quits the player application. quit is ignored in the editor or the web player.

退出应用程序。在编辑器或者web播放器中退出被忽略。

important:this function has no effect on iphone. termination of application under iphone os should be left at the user discretion. consult apple's technical q&a qa1561 page for further details: http://developer.apple.com/iphone/library/qa/qa2008/qa1561.html

这个函数对iphone没有效果,根据iphone应用程序终止操作系统应让用户自行决定。咨询苹果的技术问答 http://developer.apple.com/iphone/library/qa/qa2008/qa1561.html

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

if (input.getkey("escape"))

application.quit();

}

}

// quits the player when the user hits escape

//当用户点击esc建时退出播放器

function update () {

if (input.getkey ("escape")) {

application.quit();

}

}

相关阅读

文章点评
相关文章