I am building a 2 player multiplayer system where One player creates a room and another player "joins randomly" to a room.
this is my Awake function in the online menu scene.
[PUN] [Multiplayer] Scene synchronization problem after leaving room.
this is my Awake function in the online menu scene.
Code (CSharp):
- {
- //I have to do this because if player leaves this scene and again enter this scene, he can't join or create any room.
- if (PhotonNetwork.connected)
- {
- }
- PhotonNetwork.automaticallySyncScene = true;...