application.levelcount 关卡数

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

摘要: application.levelcount 关卡数static varlevelcount: intdescription描述the total number of levels available (read only).可用的关卡总数。(只读)c#javascriptusing unityengine;using system.collections;pub ...

application.levelcount 关卡数

static varlevelcount: int

description描述

the total number of levels available (read only).

可用的关卡总数。(只读)

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

application.loadlevel(random.range(0, application.levelcount - 1));

}

}

// loads a random level

//随机加载一个关卡

application.loadlevel (random.range(0, application.levelcount-1));

文章点评