|
@@ -33,6 +33,9 @@
|
|
|
// devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
|
|
|
}, (progress) => {}).then((unityInstance) => {
|
|
|
myGameInstance = unityInstance;
|
|
|
+ window.parent.postMessage({
|
|
|
+ success: 1
|
|
|
+ }, '*');
|
|
|
});
|
|
|
window.onload = function () {
|
|
|
Reset();
|
|
@@ -52,7 +55,7 @@
|
|
|
}
|
|
|
|
|
|
window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
- if(e.data.type){
|
|
|
+ if (e.data.type) {
|
|
|
send(e.data.type);
|
|
|
}
|
|
|
});
|