|
@@ -109,6 +109,7 @@ export const UnityAction = {
|
|
UnityAction.event[type] = [];
|
|
UnityAction.event[type] = [];
|
|
}
|
|
}
|
|
UnityAction.event[type].push(callback);
|
|
UnityAction.event[type].push(callback);
|
|
|
|
+ console.log(UnityAction.event);
|
|
},
|
|
},
|
|
off(type, callback) {
|
|
off(type, callback) {
|
|
if (callback) {
|
|
if (callback) {
|
|
@@ -144,10 +145,8 @@ export const UnityAction = {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|
|
-// alert(window.vuplex);
|
|
|
|
if (window.vuplex) {
|
|
if (window.vuplex) {
|
|
window.vuplex.addEventListener('message', (e) => {
|
|
window.vuplex.addEventListener('message', (e) => {
|
|
- // alert('99999999');
|
|
|
|
console.log(
|
|
console.log(
|
|
'============================getMessageForUnity============================',
|
|
'============================getMessageForUnity============================',
|
|
);
|
|
);
|