How to get all of my players in the same room
I recently had to update to Unity 2020. I had used Photon Pun 1 before that and moved to Photon Pun 2.
I followed the tutorial example.
So at OnConnectedTo Master I used JoinRandomRoom and when OnJoinRandomFailed() it will create new room with PhotonNetwork.CreateRoom.
Game is live now and I would like to have all my players at the same room. Max Players Per Room is 30 and I have 100 CCU plan.
First I wondered why the game is so quiet compared to what it used to be with Photon Pun 1. Of course it takes awhile for players to have the recent update. My game will soon reach 1 million downloads although it is small, it has always players.
But when I run the game on my Android device build and Unity editor at the same time, for some reason the game can't find the same room that exists.
When I build PC version of the game and run multiple windows of the game I can see the players. It works ok.
It looks like the players are scattered on different places depending if I run the game on my android device or PC. Maybe this is happening with my live game too. How could I get all my players on the same "server"? Does Photon separate players based on their location or something? Or is the JoinRandomRoom the problem? If I understand the code correctly, PUN2 is not creating new room with this code if there exists one already?