Is there an easy way to list players in the lobby

Options
M4TT
M4TT
Hello.

I'm trying to know if I can easily identify player by an ID when they join the lobby.
I could use that PhotonNetwork.player.ID but if someone leave the room before the game starts, his ID will be unavailaible.
I'm trying to list players when they join the lobby because I need to identify the last player alive and then I can set a score system.
Have you any idea to resolve this issue (identify each player) ?
Thanks

Comments

  • M4TT
    Options
    I was thinking about a system :
    If someone leave --- > everyone in the room are sent in a new one. Then they should get a new player id and there should not be inactive player id.
    Do you know how can I do that if it seems right to you ?
  • M4TT
    Options
    I just tried this system bellow and it seems to work