Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SridharaQweebi committed Dec 18, 2024
1 parent 4009cd6 commit 3711b39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 1 addition & 2 deletions libs/core/_locales/core-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"String.substr|block": "substring of %this=text|from %start|of length %length",
"String|block": "String",
"console|block": "console",
"hare.helloUnity|block": "true",
"hare.hop|block": "hop %hop on color %color=colorNumberPicker",
"hare.onLand|block": "on land",
"hare|block": "hare",
Expand All @@ -52,7 +51,7 @@
"turtle.onBump|block": "on bump",
"turtle.turn|block": "turn %direction|by %angle degrees",
"turtle|block": "turtle",
"unity.helloUnityNamespace|block": "helloUnity namespace",
"unity.helloUnity|block": "helloUnity",
"{id:category}Array": "Array",
"{id:category}Arrays": "Arrays",
"{id:category}Boolean": "Boolean",
Expand Down
10 changes: 3 additions & 7 deletions libs/core/sims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ declare namespace hare {
//% shim=hare::onLand
function onLand(handler: (height: number, more: number, most: number) => void): void;

//% block
//% shim=hare::helloUnity
function helloUnity(): void;

}
declare namespace unity {
//% blockId=helloUnityNamespace block="helloUnity namespace"
//% shim=unity::helloUnityNamespace
function helloUnityNamespace(): void;
//% blockId=helloUnity block="helloUnity"
//% shim=unity::helloUnity
function helloUnity(): void;

}
declare namespace turtle {
Expand Down
12 changes: 10 additions & 2 deletions sim/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@ namespace pxsim.unity {
console.log("MakeCode: calling parent function..");
parent.sendMessage(`SEND_MIXPANEL_EVENT:BtnClickBrowserVideoPlayerClose:VideoId:xx:Timestamp:12`)
}
else{
console.log("MakeCode: parent or function not found");
else
{
if(parent == null)
{
console.log("MakeCode: parent or function not found");
}
else{
console.log("MakeCode: parent or function not found");
}

}
}
}
Expand Down

0 comments on commit 3711b39

Please sign in to comment.