- 最后登录
- 2016-8-29
- 注册时间
- 2012-8-25
- 阅读权限
- 90
- 积分
- 23585
- 纳金币
- 20645
- 精华
- 62
|
检测你的数据文件是否被移动到其他的服务器- // 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”);
-
- }
-
- }
复制代码 |
|