Scene loading when joining a created room

I am looking at the Asteroids Demo and think I understand how everything fits together. There is only one thing I cannot puzzle out.

Players join a room. The player who created the room can click the Start game button (LobbyMainPanel.cs)
The button runs this code.
 public void OnStartGameButtonClicked()
            PhotonNetwork.CurrentRoom.IsOpen = false;
            PhotonNetwork.CurrentRoom.IsVisible = false;

This is on the room creator's machine. How or what fires the load of the game scene for the other players ?
I tried debugging, but if you joined a room this code does not seem to run.


  • Just as I asked, I found PhotonNetwork.AutomaticallySyncScene = true;