Couldn't connect again after using disconnect. Bug?
Options
CMR
✭
When the game starts I call this method:
Then when you press the singleplayer button I call this:
OnStatusChanged: Connect current State: ConnectingToNameServer
Connected to NameServer.
OnStatusChanged: EncryptionEstablished current State: ConnectingToNameServer
Is this a bug?
private void SetOnlineMode() { if (PhotonNetwork.offlineMode == true || PhotonNetwork.connected == false) { PhotonNetwork.offlineMode = false; PhotonNetwork.ConnectUsingSettings("0.1"); } }
Then when you press the singleplayer button I call this:
private void SetOfflineMode() { if (PhotonNetwork.offlineMode == false && PhotonNetwork.connected == true) { PhotonNetwork.Disconnect(); } PhotonNetwork.offlineMode = true; }After playing singleplayer, when you return to the main menu, I call again SetOnlineMode(), but Photon doesn't connect again, this is the log:
OnStatusChanged: Connect current State: ConnectingToNameServer
Connected to NameServer.
OnStatusChanged: EncryptionEstablished current State: ConnectingToNameServer
Is this a bug?
0