|
|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
//当需要显示热点Tag的时候触发, 该函数为unity主动调用的函数
|
|
|
window.showTag = function (index) {
|
|
|
if (window.parent && window.parent !== window) {
|
|
|
@@ -19,20 +18,14 @@ window.onModelControlled = function () {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-window.onClickMainHotspot = function(hotspotName){
|
|
|
- if (window.parent && window.parent !== window) {
|
|
|
- window.parent.onClickMainHotspot();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//更新配置
|
|
|
window.refreshAppSettings = function (json) {
|
|
|
window.unityInstance.SendMessage('MainCanvas', 'RefreshAppSettings', json)
|
|
|
}
|
|
|
|
|
|
+//设置模型自动旋转, 0代表不自动旋转
|
|
|
window.setModelAutoRotation = function(speed){
|
|
|
window.unityInstance.SendMessage('MainCanvas', 'SetModelAutoRotation', speed)
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//切换背景图 (0目录页, 1玄石可观, 2石上春秋, 3碑刻密码, 4模型鉴赏) 这些名字对应的蓝湖设计的标题
|
|
|
@@ -40,7 +33,6 @@ window.changePanel = function (index) {
|
|
|
window.unityInstance.SendMessage('MainCanvas', 'ChangePanel', index)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//聚焦热点, 对应玄石可观中的热点, 在调用之前需要先调用changPanel(1), 退出页面时需要调用showHotspot(-1)
|
|
|
window.showHotspot = function (index) {
|
|
|
window.unityInstance.SendMessage('MainCanvas', 'ShowHotspot', index)
|
|
|
@@ -74,4 +66,4 @@ window.addModelScale = function (value) {
|
|
|
//重置模型, 对应蓝湖设计 "文物鉴赏-尺寸" 右侧的重置按钮
|
|
|
window.resetModel = function () {
|
|
|
window.unityInstance.SendMessage('MainCanvas', 'ResetModel')
|
|
|
-}
|
|
|
+}
|