Ver Fonte

替换双人奔跑脚本

plg há 11 meses atrás
pai
commit
5db293935a
3 ficheiros alterados com 3 adições e 2 exclusões
  1. BIN
      static/run/Build/Bulid.data
  2. BIN
      static/run/Build/Bulid.wasm
  3. 3 2
      static/run/index.html

BIN
static/run/Build/Bulid.data


BIN
static/run/Build/Bulid.wasm


+ 3 - 2
static/run/index.html

@@ -96,11 +96,12 @@
       }).then((unityInstance) => {
         loadingBar.style.display = "none";
         this.gameInstance = unityInstance;
-        // this.gameInstance.SendMessage("Runvelocity", "IsStart", "true");
+        this.gameInstance.SendMessage("Runvelocity", "IsStart", "true");
       }).catch((message) => {
         alert(message);
       });
     };
+
     function changeSize(width, height) {
       canvas.style.width = width + 'px';
       canvas.style.height = height + 'px';
@@ -112,7 +113,7 @@
       this.gameInstance.SendMessage("Runvelocity", "Firstvelocity", val);
     }
     // setInterval(()=>{
-    //   let a =0+","+1
+    //   let a =Math.random(0,1)+","+Math.random(0,1)
     //   Bloo(a)
     // },1000)
     document.body.appendChild(script);