Why does my game report errors? I know that the room is not connected to, but I don't know why I fin

Options

I've connected to Lobby, but I can't connect to Room

Here is my code:


Answers

  • MoodHorse
    Options

    I've been tossing and turning for two days. I'm grateful for any hint

  • Tobias
    Options

    The simple solution is to not call JoinLobby().

    It changes your client's state (immediately) to JoiningLobby. While joining a lobby, the client can not do much else. It is sending a message to the server to join said lobby, so you have to wait for that to finish, before calling Join or Create methods.

    In your case, the default lobby is used anyways, when you are in no lobby at all before you create a room.