update
parent
95f43aae75
commit
76ba8f2e1c
|
@ -123,6 +123,15 @@ export class GameManager extends Singleton<GameManager>() {
|
||||||
EventManger.instance.emit(GameEvent.GameStateChange, this._gameState);
|
EventManger.instance.emit(GameEvent.GameStateChange, this._gameState);
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case GameState.Init:
|
case GameState.Init:
|
||||||
|
window.parent.postMessage(
|
||||||
|
JSON.stringify({
|
||||||
|
error: false,
|
||||||
|
message: 'Game Loaded',
|
||||||
|
score: 0,
|
||||||
|
type: 'loaded',
|
||||||
|
}),
|
||||||
|
'*',
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
case GameState.Ready:
|
case GameState.Ready:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue