update
parent
95f43aae75
commit
76ba8f2e1c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue