您的位置:首页 > 其它

检测你的数据文件是否被移动到其他的服务器

2013-02-22 10:20 197 查看
// This detects if your data files were moved to another server
// 检测你的数据文件是否被移动到其他的服务器
// or are being linked to from somewhere else.
// 或是被链接到其他地方

function Start () {
var isPirated : boolean = false;

if (Application.isWebPlayer) {
if (Application.srcValue != "game.unity3d")
isPirated = true;
if (String.Compare (Application.absoluteURL,	"http://www.website.com/Game/game.unity3d", true) != 0)
isPirated = true;

if (isPirated)
print("Pirated web player");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐