|
@@ -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);
|