Cannot create room

I use PUN to create multiplayer in my game. And when I try to create a room from the menu, the same error message appears every time:
CreateRoom failed. Client is on MasterServer (must be Master Server for matchmaking)but not ready for operations (State: PeerCreated). Wait for callback: OnJoinedLobby or OnConnectedToMaster.
But when I try to use OnJoinedLobby or OnConnectedToMaster, they just don't get called.
For some reason, connecting to the lobby via PhotonNetwork.JoinLobby () doesn't happen at all.
How do I create a room anyway?
Sorry for using Google translator.

Comments

  • Did you connect?
    The PUN Basics Tutorial should help.
  • What do you mean by "connect"? I read the tutorial and did practically according to it, except that due to the peculiarities of the game, I did not use a connection to a random room.