feature/ads-smart-display
tiendat3699 2024-07-01 13:40:20 +07:00
parent 95f43aae75
commit 76ba8f2e1c
1 changed files with 9 additions and 0 deletions

View File

@ -123,6 +123,15 @@ export class GameManager extends Singleton<GameManager>() {
EventManger.instance.emit(GameEvent.GameStateChange, this._gameState);
switch (state) {
case GameState.Init:
window.parent.postMessage(
JSON.stringify({
error: false,
message: 'Game Loaded',
score: 0,
type: 'loaded',
}),
'*',
);
break;
case GameState.Ready:
break;