- Home /
photonnetwork turn based game rejoin room
Game type : board game, Max player :4, Turn based :true
when player starts game my script will set playerprefab "reconnect" to 1 and when game is ended it will be set to 0 if player is disconnected during game, "reconnect" remains to 1 so when player try to reconnect he knows what to do.
what is the code for player to joinroom again in photonnetwork???
i set room.visible = false, and room.open = true.
or you can tell how to do it on uNet
When first connected to the room you can store the name of the room locally.
string roomName = PhotonNetwork.room.name;
For re-connecting use the ReJoinRoom(...) function.
PhotonNetwork.ReJoinRoom(roomName);
Your answer
Follow this Question
Related Questions
Photon Network instantiate problem when Master changes 0 Answers
Can't use Photon PUN on existing project. 0 Answers
Correct way to design turn based multiplayer using Photon Unity Networking. 0 Answers
uNet like photon 0 Answers
Pun In Room Chat Script 1 Answer