application.canstreamedlevelbeloaded 流关卡被加载

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

摘要: application.canstreamedlevelbeloaded 流关卡被加载static functioncanstreamedlevelbeloaded(levelindex: int) : booldescription描述can the streamed level be loaded?能流模式加载的关卡是否被加载?参见:getst ...

application.canstreamedlevelbeloaded 流关卡被加载

static functioncanstreamedlevelbeloaded(levelindex: int) : bool

description描述

can the streamed level be loaded?

能流模式加载的关卡是否被加载?

参见:getstreamprogressforlevel函数.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

if (application.canstreamedlevelbeloaded(1))

application.loadlevel(1);

}

}

// check if level at index 1 can be loaded.

// if it can be loaded then load it.

//检查如果索引为1的关卡可以被加载

//如果能被加载就加载它

function update() {

if (application.canstreamedlevelbeloaded(1)) {

application.loadlevel(1);

}

}

o static functioncanstreamedlevelbeloaded(levelname: string) : bool

description描述

can the streamed level be loaded?

能流模式加载的关卡是否被加载?

参见:getstreamprogressforlevel函数.

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

if (application.canstreamedlevelbeloaded("level1"))

application.loadlevel("level1");

}

}

// check if "level1" can be loaded, if it can be loaded then load it.

//检查如果level1可以加载,如果能加载就加载它

function update() {

if (application.canstreamedlevelbeloaded("level1")) {

application.loadlevel("level1");

}

}

相关阅读

文章点评
相关文章