application.platform 平台

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

摘要: application.platform 平台static varplatform:runtimeplatformdescription描述returns the platform the game is running (read only).返回游戏运行的平台(只读)。use this property if you absolutely need to d ...

application.platform 平台

static varplatform:runtimeplatform

description描述

returns the platform the game is running (read only).

返回游戏运行的平台(只读)。

use this property if you absolutely need to do some platform dependent work. see also:runtimeplatform

如果你要做一些平台相关的操作使用这个属性

另参见:runtimeplatform

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void start() {

if (application.platform ==runtimeplatform.windowsplayer)

print("do something special here!");

}

}

function start () {

if (application.platform ==runtimeplatform.windowsplayer)

print ("do something special here!");

}

文章点评