After I leave room, I can't see the rooms avaliable.
Options
Hi @JohnTube
How is your weekend
I have some problem.
I just left the room. (PhotonNetwork.LeaveRoom(true);)
And on offline scene, I couldn't find any rooms(RoomList is null)
If I restart my app, I can see the rooms.
What is the problem?
How is your weekend
I have some problem.
I just left the room. (PhotonNetwork.LeaveRoom(true);)
And on offline scene, I couldn't find any rooms(RoomList is null)
If I restart my app, I can see the rooms.
What is the problem?
0
Best Answer
-
This was my mistake
Once I leave the room, i called this block of code twice in a separate 2 files.if (PhotonNetwork.connected == true) { PhotonNetwork.Disconnect(); } else { PhotonNetwork.ConnectUsingSettings("0.0.0"); }
removed one block of code in one file and it worked.
0
Answers
-
Hi @sweetmei25,And on offline sceneWhat do you mean by this?
In offline mode, I don't think there is a room list.0 -
This was my mistake
Once I leave the room, i called this block of code twice in a separate 2 files.if (PhotonNetwork.connected == true) { PhotonNetwork.Disconnect(); } else { PhotonNetwork.ConnectUsingSettings("0.0.0"); }
removed one block of code in one file and it worked.
0