How players on the same team are in different scene?
Options
Answers
-
At the end of the game, say in your reward scene, call
PhotonNetwork.LeaveRoom()
and then when a player clicks the "back to menu" button, you can callUnityEngine.SceneManagement.SceneManager.LoadSceneAsync()
to return to the lobby. CallingLeaveRoom
connects the client to the MasterServer instead of the GameServer, which makes the client no longer sync scenes with the players in the room (if you are using lobbies you would need to callJoinLobby
in your menu scene).0