Check if no one has disconnected from the Room at game start

Hello,
I want to make a check before starting the game that all the players that were there in the room are still there when I start the game.
If one of the player gets disconnected in the time duration from clicking the start game button and actual game getting started, my game does not starts.

And also can I freeze a room so that no one can join it when the game has already started.

Please Help.... its urgent....!!

Thanks in advance

Ketan
IronJaw Studios

Comments

  • 1. PhotonNetwork.playerList returns list of players currently joined to the room
    2. set PhotonNetwork.room.open = false to prevent joining new players to the room. You can also make room not listed in the lobby: PhotonNetwork.room.visible = false
  • Cheers VADIM .... Thanks...!