فهرست منبع

替换双人奔跑脚本

plg 11 ماه پیش
والد
کامیت
5db293935a
3فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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);