shaogen1995 3 周之前
父節點
當前提交
2f6c2cb469

二進制
public/unityMo/Build/Build.data.unityweb


二進制
public/unityMo/Build/Build.framework.js.unityweb


文件差異過大導致無法顯示
+ 1 - 1
public/unityMo/Build/Build.loader.js


二進制
public/unityMo/Build/Build.wasm.unityweb


二進制
public/unityMo/StreamingAssets/aa/WebGL/089c7ab93c27a929ecb0cbb575f4147c.bundle


二進制
public/unityMo/StreamingAssets/aa/WebGL/4d0b6aa8264949a568c452d2c79d8312.bundle


二進制
public/unityMo/StreamingAssets/aa/catalog.bin


+ 1 - 1
public/unityMo/StreamingAssets/aa/catalog.hash

@@ -1 +1 @@
-958ec67bcb94090d954ef97cd60d083d
+b977dfca9190d0f1dcc655c4789324a5

+ 5 - 0
public/unityMo/export_main.js

@@ -40,6 +40,11 @@ window.setLazyMode = function (isLazyMode) {
     window.unityInstance.SendMessage('SceneLoader', 'SetLazyMode', isLazyMode ? 1 : 0)
 }
 
+//设置程序时间倍率, float类型, 为0是静止, 为1是正常速度
+window.setUnityTimeScale = function (timeScale) {
+    window.unityInstance.SendMessage('SceneLoader', 'SetTimeScale', timeScale)
+}
+
 //是否正在加载场景
 window.isLoadingScene = function () {
     return isLoadingScene

+ 4 - 2
public/unityMo/index.html

@@ -1,5 +1,6 @@
 <!DOCTYPE html>
 <html lang="zh-CN">
+
 <head>
     <meta charset="utf-8">
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@@ -12,6 +13,7 @@
     <script src="./export_roomScene.js"></script>
     <script src="./export_drawingBoard.js"></script>
 </head>
+
 <body>
     <div id="unity-container">
         <canvas id="unity-canvas" width=960 height=600 tabindex="-1"></canvas>
@@ -96,7 +98,7 @@
 
 
 
-loadingBar.style.display = "block";
+    loadingBar.style.display = "block";
     var script = document.createElement("script");
     script.src = loaderUrl;
     script.onload = () => {
@@ -119,4 +121,4 @@ loadingBar.style.display = "block";
     document.body.appendChild(script);
 </script>
 
-</html>
+</html>

二進制
public/unityPc/Build/Build.data.unityweb


二進制
public/unityPc/Build/Build.framework.js.unityweb


文件差異過大導致無法顯示
+ 1 - 1
public/unityPc/Build/Build.loader.js


二進制
public/unityPc/Build/Build.wasm.unityweb


二進制
public/unityPc/StreamingAssets/aa/WebGL/089c7ab93c27a929ecb0cbb575f4147c.bundle


二進制
public/unityPc/StreamingAssets/aa/WebGL/4d0b6aa8264949a568c452d2c79d8312.bundle


二進制
public/unityPc/StreamingAssets/aa/catalog.bin


+ 1 - 1
public/unityPc/StreamingAssets/aa/catalog.hash

@@ -1 +1 @@
-a9b29854fdc52059e5415a9caf1e0ba1
+e008853a118f37db8c721b717204c33d

+ 5 - 0
public/unityPc/export_main.js

@@ -40,6 +40,11 @@ window.setLazyMode = function (isLazyMode) {
     window.unityInstance.SendMessage('SceneLoader', 'SetLazyMode', isLazyMode ? 1 : 0)
 }
 
+//设置程序时间倍率, float类型, 为0是静止, 为1是正常速度
+window.setUnityTimeScale = function (timeScale) {
+    window.unityInstance.SendMessage('SceneLoader', 'SetTimeScale', timeScale)
+}
+
 //是否正在加载场景
 window.isLoadingScene = function () {
     return isLoadingScene

+ 2 - 0
src/pages/A6ybwx/Sangzang/components/Policy/index.tsx

@@ -37,6 +37,8 @@ function Policy({ setShowTab }: { setShowTab: (tab: number) => void }) {
 
   // 处理滚轮事件
   const handleWheel = (e: any) => {
+    console.log('xxxxxx', originRef.current)
+
     if (originRef.current) {
       originRef.current.scrollLeft += e.deltaY
     }

+ 4 - 2
src/pages/A6ybwx/index.tsx

@@ -38,10 +38,12 @@ function A6ybwx() {
   useEffect(() => {
     if (gotoTab !== 0) {
       // 停止动画
-      callIframeFu('setLazyMode', 1)
+      callIframeFu('setLazyMode', true)
+      callIframeFu('setUnityTimeScale', 0)
     } else {
       // 恢复动画
-      callIframeFu('setLazyMode', 0)
+      callIframeFu('setLazyMode', false)
+      callIframeFu('setUnityTimeScale', 1)
     }
     // console.log('xxxxxxx', gotoTab)
   }, [gotoTab])