Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

PUN turn based game - retrieve list of rooms for player

$
0
0
Hi all,

I've been reading through documentation and have some code setup that tries to join a random room, if if cannot find one it creates a new room and the first player is then able to submit their turn.

What I am struggling with is a way to retrieve a list of Rooms / Games that the current player is a participant of. I've created the room with the following options, which I believe means it should stay active for up to 7 days?
       RoomOptions _opt = new RoomOptions();
       _opt.MaxPlayers = 2;
       _opt.PlayerTtl = 7 * 24 * 60 * 60 * 1000;
       _opt.EmptyRoomTtl = 300000;

I'm also using OnRoomListUpdate(), but I never seem to hit this method.

Any advice much appreciated.

Regards
Gavin

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>