shaogen1995 1 месяц назад
Родитель
Сommit
1eb89ea4e7

BIN
public/Chenzhebei-ShanxiMuseum/Build/Build.data.unityweb


BIN
public/Chenzhebei-ShanxiMuseum/Build/Build.framework.js.unityweb


BIN
public/Chenzhebei-ShanxiMuseum/Build/Build.wasm.unityweb


+ 5 - 2
public/Chenzhebei-ShanxiMuseum/unityExport.js

@@ -20,14 +20,17 @@ window.onModelControlled = function () {
 }
 
 
-
-
+//更新配置
+window.changePanel = function (index) {
+    window.unityInstance.SendMessage('MainCanvas', 'RefreshConfig')
+}
 
 //切换背景图 (0目录页, 1玄石可观, 2石上春秋, 3碑刻密码, 4模型鉴赏) 这些名字对应的蓝湖设计的标题
 window.changePanel = function (index) {
     window.unityInstance.SendMessage('MainCanvas', 'ChangePanel', index)
 }
 
+
 //聚焦热点, 对应玄石可观中的热点, 在调用之前需要先调用changPanel(1), 退出页面时需要调用showHotspot(-1)
 window.showHotspot = function (index) {
     window.unityInstance.SendMessage('MainCanvas', 'ShowHotspot', index)