找回密碼
 注冊帳號

掃一掃,訪問微社區

application.levelcount 關卡數

2014-12-31 08:14| 發布者: 楊炎| 查看: 2822| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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));

文章點評
女校游泳队彩金