- Home /
having problem with multiplayer using photon network
When i join a room to play the game and then if i leave the room during the gameplay i am on the main menu , then i search for a new room to join it's keep searching but when i close the app and open it again it's finding the match and i am able to join but its not happening when i leave and try to join again.here is the function which i am calling on leave button.
public void LeaveGame(bool finishWindow) { if (!iFinished || finishWindow) { PlayerPrefs.SetInt("GamesPlayed", PlayerPrefs.GetInt("GamesPlayed", 1) + 1); PhotonNetwork.BackgroundTimeout = StaticStrings.photonDisconnectTimeoutLong;
         //GameManager.Instance.cueController.removeOnEventCall();
        
         GameManager.Instance.playfabManager.roomOwner = false;
         GameManager.Instance.roomOwner = false;
         GameManager.Instance.resetAllData();
         PhotonNetwork.LeaveRoom();
         SceneManager.LoadScene("MenuScene");
     }
     else
     {
         ShowGameFinishWindow();
     }
 }
Your answer
 
 
             Follow this Question
Related Questions
Operation failed: OperationResponse 226: ReturnCode: 32758 (Game does not exists) 1 Answer
Players are lagging in Photon multiplayer 0 Answers
Can I disable UI visibility for the LOCAL player and not other players? (using photon) 0 Answers
Photon and Playfab 0 Answers
Instantiating player when creating a new room in photon not working. 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                