Don't close room when all players leave

Options
I'm looking into making a Unity turn-based mobile game with PUN in which players can play the game and then exit and come back while their opponent is taking their turn (similar to Words with Friends). I have some PUN experience and I know that when a room has no members in it, it will automatically close. Is there some way to prevent this from happening? I would like a room to remain open so players who are returning to finish a game will receive all of the buffered RPCs in order to restore the gamestate. Is this possible?

Comments

  • Tobias
    Options
    PUN is not ready for turnbased games where you can save the state and return. The "returning" in this workflow is a bit tricky, so you can't at the moment.
    You can use the Photon Turnbased SDK for Unity clients from our download page. This has a Turnbased sample and with little more effort you can have inactive users in a room and the room will be saved when everyone leaves.

    https://www.exitgames.com/Turnbased/Download