Jelajahi Sumber

新版水深

huangxingxing 1 tahun lalu
induk
melakukan
c289fa8a13

+ 24 - 5
src/views/home/index.vue

@@ -3,6 +3,9 @@
     <link rel="stylesheet" href="static/TemplateData/style.css">
     <link rel="manifest" href="static/manifest.webmanifest">
       <div id="unity-container">
+           <el-button @click="changeWater(0.8)">水深</el-button>
+           <el-button @click="changeCamera(1)">内部</el-button>
+           <el-button @click="changeCamera(0)">外部</el-button>
       <canvas id="unity-canvas"></canvas>
       <div id="unity-loading-bar">
         <div id="unity-logo"></div>
@@ -11,6 +14,7 @@
         </div>
       </div>
       <div id="unity-warning"> </div>
+     
     </div>
 </template>
 <script setup>
@@ -51,12 +55,11 @@ onMounted(() => {
       }
 
       var buildUrl = "static/Build";
-      var loaderUrl = buildUrl + "/Build.loader.js";
+       var loaderUrl = buildUrl + "/BuildFast.loader.js";
       var config = {
-        dataUrl: buildUrl + "/Build.data",
-        codeUrl: buildUrl + "/Build.wasm",
-        frameworkUrl: buildUrl + "/Build.framework.js",
-  
+        dataUrl: buildUrl + "/BuildFast.data",
+        frameworkUrl: buildUrl + "/BuildFast.framework.js",
+        codeUrl: buildUrl + "/BuildFast.wasm",
         streamingAssetsUrl: "StreamingAssets",
         companyName: "DefaultCompany",
         productName: "CollierySafety",
@@ -93,7 +96,23 @@ onMounted(() => {
         });
       };
       document.body.appendChild(script);
+
+
+
 });
+
+/**
+ * lv 水深
+ */
+function changeWater(lv){
+    window.postMessage('changeWater:'+lv);
+}
+/**
+ * lv 0 1
+ */
+function changeCamera(lv){
+     window.postMessage('changeCamera:'+lv);
+}
 </script>
 
 <style scoped>

File diff ditekan karena terlalu besar
+ 0 - 9
static/Build/Build.framework.js


TEMPAT SAMPAH
static/Build/Build.data → static/Build/BuildFast.data


File diff ditekan karena terlalu besar
+ 9 - 0
static/Build/BuildFast.framework.js


+ 0 - 0
static/Build/Build.loader.js → static/Build/BuildFast.loader.js


TEMPAT SAMPAH
static/Build/Build.wasm → static/Build/BuildFast.wasm


+ 4 - 4
static/ServiceWorker.js

@@ -1,9 +1,9 @@
 const cacheName = "DefaultCompany-CollierySafety-0.1.0";
 const contentToCache = [
-    "Build/Build.loader.js",
-    "Build/Build.framework.js",
-    "Build/Build.data",
-    "Build/Build.wasm",
+    "Build/BuildFast.loader.js",
+    "Build/BuildFast.framework.js",
+    "Build/BuildFast.data",
+    "Build/BuildFast.wasm",
     "TemplateData/style.css"
 
 ];

+ 4 - 4
static/index.html

@@ -57,11 +57,11 @@
       }
 
       var buildUrl = "Build";
-      var loaderUrl = buildUrl + "/Build.loader.js";
+      var loaderUrl = buildUrl + "/BuildFast.loader.js";
       var config = {
-        dataUrl: buildUrl + "/Build.data",
-        frameworkUrl: buildUrl + "/Build.framework.js",
-        codeUrl: buildUrl + "/Build.wasm",
+        dataUrl: buildUrl + "/BuildFast.data",
+        frameworkUrl: buildUrl + "/BuildFast.framework.js",
+        codeUrl: buildUrl + "/BuildFast.wasm",
         streamingAssetsUrl: "StreamingAssets",
         companyName: "DefaultCompany",
         productName: "CollierySafety",

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini