do you know how can I get the number of players in a specific scene? I’m using Unity Photon’s PUN 2, so, almost anything of PUN 1 won’t work. Thanks.
You’d have to give all players a certain tag then use a method like this.
int FindPlayers () {
GameObject[] players = GameObject.FindGameObjectsWithTag("Player");
int playerNumber = players.Length;
return playerNumber;
}