Skip to content

Commit

Permalink
updated api
Browse files Browse the repository at this point in the history
  • Loading branch information
SridharaQweebi committed Dec 18, 2024
1 parent b2992bd commit 537b404
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions sim/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ namespace pxsim.hare {
export function onLand(handler: (height: number, more: number, most: number) => void) {

}
}

namespace pxsim.unity {

///% block
//% blockId=helloUnityNamespace block="helloUnity namespace"
export function helloUnity(){
const parent = window.parent as Record<string, any>
if (parent && typeof parent.sendMessage === "function") {
Expand All @@ -35,14 +38,6 @@ namespace pxsim.hare {
}
}

namespace pxsim.unity {

//% blockId=helloUnityNamespace block="helloUnity namespace"
export function helloUnityNamespace(){

}
}

namespace pxsim.turtle {
/**
* Moves the sprite forward
Expand Down

0 comments on commit 537b404

Please sign in to comment.