How can I restore player's state in the room after he lose the connection with my game?

Options
How can I restore player's state in the room after he lose the connection with my game? I mean he would have the same PhotonNetwork.player.name when he connects to the game again

Comments

  • vadim
    Options
    Client sets player name before connection. It can take it from previous session.
    Restoring player game state may be more complicated. Other clients should keep player's state while it's disconnected. The state should be referenced by name, not by id since new id will be assigned on reconnect.
    Things are much easier with Turnbased applications but PUN does not support this currently.