Jump to content

disableVisibilityChange in Phaser 3


dontHaveName
 Share

Recommended Posts

  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  • 2 months later...
 game = new Phaser.Game(config);

// game.scene.add('Boot', BootScene); //*** key,class */
 game.scene.add('GameScene', GameScene);
 game.scene.add('UI', UIScene);

 game.scene.start('GameScene', {issue: issue,isGameOver:true});

 this.game.events.on('hidden',function(){
     console.log('hidden');
 },this);

 this.game.events.on('visible',function(){
     console.log('visible');
 },this);

 

this is what i did above ,and it works very well

 

www.ifiero.com

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...