Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

[PUN] [Multiplayer] Scene synchronization problem after leaving room.

$
0
0
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.

Code (CSharp):
  1. void Awake()
  2.     {
  3.                //I have to do this because if player leaves this scene and again enter this scene, he can't join or create any room.
  4.         if (PhotonNetwork.connected)
  5.         {
  6.             PhotonNetwork.Disconnect ();
  7.         }
  8.         PhotonNetwork.automaticallySyncScene = true;...
[PUN] [Multiplayer] Scene synchronization problem after leaving room.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>