Hello friend. I am making a multiplayergame using photon. I need that one array of elements to b as custom property as it uses random sorting. but the function OnPhotonCustomRoomPropertiesChanged is never executed. I am afraid that Setting custon is the problem
for(int i=0; i<cardsid.Length; i++){
ExitGames.Client.Photon.Hashtable hashid = new ExitGames.Client.Photon.Hashtable(); // only use ExitGames.Client.Photon.Hashtable for Photon
string keyid;
keyid=leter+i.ToString();
hashid[keyid]=cardsid[i];
PhotonNetwork.room.SetCustomProperties(hashid);
Debug.Log ("EFGGGEEEEEEEEEE");
}
and
public void OnPhotonCustomRoomPropertiesChanged(ExitGames.Client.Photon.Hashtable propertiesThatChanged)
{
for(int i=0; i<cardsid.Length; i++){
string keyid;
keyid=leter+i.ToString();
if(propertiesThatChanged.ContainsKey(keyid)){
cardsid[i]=(int)propertiesThatChanged[keyid];
}}
}