Photon Join Random CustomRoomProperties not working
ublic void findmatchbtn() { findmatch.SetActive(false); searchmatch.SetActive(true); search = 1; PhotonNetwork.JoinRandomRoom(new Hashtable { { mode, 1 } }, 5 ); Debug.Log("maç aranıyor"); } public override void OnJoinRandomFailed(short returnCode, string message) { Debug.Log("oda bulunamadı kuruldu"); makeroom();
}
public void makeroom() { int randomroomname = Random.Range(0, 5000); RoomOptions roomOptions = new RoomOptions() { IsVisible = true, IsOpen = true, MaxPlayers = 5, CustomRoomProperties = new Hashtable { { mode, 1 } } }; PhotonNetwork.CreateRoom("roomname_" + randomroomname, roomOptions, null); Debug.Log("room tamamen oldu diğer oyunvular bekleniyor"); Debug.Log(roomOptions.CustomRoomProperties); StartCoroutine(ExampleCoroutine()); } but dont join room all create room only
Your answer
Follow this Question
Related Questions
Photon Network, synchronize a int over the network. 1 Answer
Racing game using PUN 2 0 Answers
Unity Photon doesn't Spawn Player 0 Answers
How to improve voice quality in Photon Voice? 1 Answer
Lerping to Smooth Network Movement 0 Answers