Photon Networking - How to move all players from game scene to current room scene?
PhotonNetwork.LoadLevel(1); // Move to game scene
I want to move players to current room scene when the game is finish.. Lobby -> JoinRoom -> CurrentRoom -> Game Start -> LoadLevel(1) -> Game Finish -> All players move to CurrentRoom.
I tried to PhotonNetwork.LoadLevel(0);
But the room was disappeared.. Help me Or How to restart the game? or reload game scene again?
Hi,
you can use PhotonNetwork.automaticallySyncScene = true;
to automatically synchronize the scene across all players. $$anonymous$$ake sure that you don't have any scripts in the new scene, that try to connect or disconnect to or from Photon or try to join or leave a room.
Under normal circumstances, rooms doesn't disappear unless the last player left it and the EmptyRoomTtl timers expires if it has been set while creating the room.