please i need help on pun2

hi How are you all ,
i have problem on return main menu i can't join room and create room and this code for problem. (( CreateRoom failed. Client is on GameServer (must be Master Server for matchmaking) and ready. Wait for callback: OnJoinedLobby or OnConnectedToMaster.
UnityEngine.Debug:LogError(Object) ))

NzlmNzNiNTExMWY0.jpg


this my script

2.jpg



and,,

3.jpg

Comments

  • Make sure you invoke your CreateRoom function only for the OnConnectMaster and OnLobbyJoined callbacks, otherwise the client may be in the wrong state for creating/joining a room.