Skip to content

Commit

Permalink
peatones y otro carro
Browse files Browse the repository at this point in the history
  • Loading branch information
Laubot committed Dec 19, 2023
1 parent fcc6a97 commit db3c238
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file modified public/Build/public.data
Binary file not shown.
2 changes: 1 addition & 1 deletion public/Build/public.framework.js

Large diffs are not rendered by default.

Binary file modified public/Build/public.wasm
Binary file not shown.
9 changes: 6 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
const db = app.firestore();
window.analytics = firebase.analytics();
//window.logEvent = analytics.logEvent;
window.analytics.logEvent("juego_inicio", {tiempo: Date.now()});
window.analytics.logEvent("juego_inicio", {tiempo: Date.now(), upid: getUid()});

function hideUI() {
document.getElementById("uiexterno").style.display = "none";
Expand All @@ -90,8 +90,8 @@

function registrar(eventName, eventParams) {
//analytics.logEvent(eventName);
//console.log('logEvent', eventName);
let ep = JSON.parse(eventParams.replace(/([0-9]{1,})(,)([0-9]{1,})/g,"$1.$3"));
console.log(eventName, eventParams);
let ep = JSON.parse(JSON.stringify(eventParams).replace(/([0-9]{1,})(,)([0-9]{1,})/g,"$1.$3"));
for(let key in ep) {
ep[key] = isNaN(Number(ep[key]))? ep[key]: Number(ep[key]);
}
Expand Down Expand Up @@ -235,6 +235,9 @@
unityInstance.SetFullscreen(1);
};

registrar('pantalla_de_empezar', {tiempo: Date.now()});
console.log('pantalla_de_empezar', Date.now());

MyGameInstance = unityInstance;

//var res = "";
Expand Down

0 comments on commit db3c238

Please sign in to comment.