Problem with multiple players in rooms
I recently stumbled across a problem in my matchmaking code where the second person to join a two-player room cannot start the game. After debugging, I found that for the person who joined a room after it was created, PhotonNetwork.room.playerCount is returning 1 at the time that the person who created the room is getting a value of 2 from the same call. Because my code checks to make sure there are two people in a room before starting the game on each side, this is preventing my multiplayer game from starting. This is a recent bug that's occurring even though I haven't changed my actual matchmaking scripts (although I recently just refactored so that I'm running PhotonNetwork in offline mode when playing a single player game, instead of only using PhotonNetwork for multiplayer like I did before). Does anyone know what might be causing this error?