A question about syncing seats

Options
Hi good people of the photon community!
I am implementing a lobby inside a room with 4 seats, and I need each player that joins that room, to have information about the free seats so he can sit there..
Some points:
* Each new joined player needs to know the first free seat, instantiate there, and set it as taken..
* Each new joined player must know the location and parent of each player in the room

The main question is what will hold all the information about the 4 seats, and their availability?

Thank you !

Answers

  • Jasper_w
    Options
    - Make the 4 Seats Scene Views (Simply by making them views and having them be part of the scene)
    - Use a RPC for taking a seat, with RpcTarget.AllViaServer, so the the RPC's for taking seats get to all players in the exact same order. AllViaServer guarantees the functions to be in the same order for all players
    - The rest you can solve :)