I have on an extended Phaser.Game class the followingÂ
let game = this;
game.onGameStart = Phaser.Signal();
function startGame(){
game.onGameStart.dispatch();
}
in an extended Phaser.State class I have the following
create(){
let game = this.game;
game.onGameStart.add(this.start, this);
game.message.on('message', function(){ game.startGame(); } // message is a node server web socket remote trigger response
game.paused = true;
}
function start()
{
this.game.paused = false;
}
Whe