Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
orp1205 committed Dec 2, 2024
1 parent eef4427 commit 6884bda
Show file tree
Hide file tree
Showing 9 changed files with 6,113 additions and 27 deletions.
8 changes: 8 additions & 0 deletions Assets/Plugins/WebGL/React.jslib
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
mergeInto(LibraryManager.library, {
GameCanPlay: function(){
try {
const event = new CustomEvent("GameCanPlay");
window.dispatchEvent(event);
} catch (e) {
console.warn("Failed to dispatch event");
}
},
PushRewardForPlayer: function (points) {
const data = { Score: points };
const event = new CustomEvent("PushRewardForPlayerEvent", { detail: data });
Expand Down
Loading

0 comments on commit 6884bda

Please sign in to comment.