Hi All
I am developing real time multiplayer game. WhenI test my game, if 2 users click "Play Game" button at the same time, both of them joins and subsribe room at the same time so that onUserJoinedRoom event is not executed for booth of them:) Therefore, I cannot send update peers.Therefore, I cannot send start game pack. If I use getLiveRoomInfo function and check if number of users is 2, start game. But this time since 2 users enter same time, booth users sees there are 2 users in the room and I cannot set the roomOwner:) In my logic first user who enters room is roomowner. So in that case there are two room owner. I do not know how to handle this? If there is a little time between I click play game buttons between users, no problem.
EDIT:This problem occus when 2 users enter an existing room.(You know dynamic rooms are not destroyed immediately. So another users can join room)
Thanks