56 lines
1.8 KiB
HTML
56 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>省公司</title>
|
|
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
|
<link rel="stylesheet" href="TemplateData/style.css">
|
|
<script src="TemplateData/UnityProgress.js"></script>
|
|
<script src="Build/UnityLoader.js"></script>
|
|
<script>
|
|
var unityInstance = UnityLoader.instantiate("unityContainer", "Build/sgs.json", { onProgress: UnityProgress });
|
|
|
|
//开启/关闭楼层面板 arg:true|false
|
|
window.parent.FloorUI = function (arg) {
|
|
console.log("arg11111", arg)
|
|
unityInstance.SendMessage("GameManager", "FloorUI", arg);
|
|
}
|
|
//调用停车场
|
|
window.parent.FloorBase = function (arg) {
|
|
console.log("arg", arg)
|
|
unityInstance.SendMessage("GameManager", "FloorBase", 'true');
|
|
}
|
|
//跳转场景 GongDi MainScene B1 B2 B3 1 2 4 27
|
|
window.parent.GotoScene = function (arg) {
|
|
unityInstance.SendMessage("GameManager", "GotoScene", arg);
|
|
}
|
|
//取消场景
|
|
window.parent.cancel = function () {
|
|
unityInstance.SendMessage("GameManager", "GotoScene", "MainScene");
|
|
}
|
|
//当场景加载完成的时候
|
|
function OnSceneLoaded(scene) {
|
|
window.parent.OnSceneLoaded(scene)
|
|
}
|
|
//打开全景图
|
|
function getUrl(url) {
|
|
console.log("打开全景", url);
|
|
window.parent.postMessage({ status: '200', data: "360全景", panorama: url }, '*');
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="webgl-content" style="width:100%;height: 100%;">
|
|
<div id="unityContainer"></div>
|
|
<div class="footer">
|
|
<div class="webgl-logo"></div>
|
|
<div class="fullscreen" onclick="unityInstance.SetFullscreen(1)"></div>
|
|
<div class="title">ShengDaPing</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |