title: Phaser 3: Starting a scene (stopping all other running scenes) from the global "game" object
body: <p>As the title says.. Is there a way to stop all running scenes when starting a scene from the &quot;game&quot; object?</p>
  <p>For now, when I call <code>game.scene.start(...)</code> from outside a Scene object, nothing happens. My current solution is to keep a global variable pointing to the latest started Scene (In all my scenes, I reset that global variable in the <code>create()</code> function with something like <code>currentScene = this;</code>) So when I want to start a new Scene I call <code>currentScene.scene.start(...)</code>. But obviously that's not reliable because I could forget to reset my global variable (<code>currentScene</code>) in all my scenes, etc...</p>
  <p><strong>EDIT:</strong></p>
  <p>To clarifiy what I'm trying to acheive: I'm making a small multiplayer game with a couple scenes and a few GameObjects. I've a &quot;socket&quot; module that handles all traffic between the client and the server (I'm using socket.io). I would want to do something like:</p>
  <pre><code>this.socket.on('game_end', (data) =&gt; {
      // Server decides when the game stops and sends an event to all clients.
      // Here I need to stop the currently running scene (i.e. SceneInGame)
      // and show the &quot;game finished / results&quot; scene.
      this.game.scene.start('SceneGameEnd');
      // ^ That doesn't work. SceneInGame keeps playing and SceneGameEnd doesn't start
  });
  </code></pre>