Sometimes creating room is not working

Options
I came up recently with such issue. I am creating a room and joining it. All works just fine. But when I am trying to join random room nothing happens. If I am checking the number of created rooms it tells me that there is none. So the question is how it could possible happen? Thank you for your answers in advance)

Answers

  • Yoethan64
    Options
    Have you tried using PhotonNetwork.JoinRandomRoom() ?
  • Pavel
    Options
    Yoethan64 wrote: »
    Have you tried using PhotonNetwork.JoinRandomRoom() ?

    Hello, yes
  • Yoethan64
    Options
    Can you please show the code? I can't find any problems when I create rooms
  • Pavel
    Options
    public void createRoom()
    {
    PhotonNetwork.CreateRoom("testRoom", new RoomOptions { MaxPlayers = 4 });
    Debug.Log(PhotonNetwork.CountOfRooms);
    }

    It is quite simple. Log tells me "0" on that. Actually right now I am able to join room but for some reason PhotonNetwork.CountOfRooms still give me "0"