how to update other player Custom props
i use otherCollider.GetComponent().owner.CustomProperties["DeathCount"] = deathcount++;
this not work =/ don't have error
this not work =/ don't have error
0
Best Answer
-
ExitGames.Client.Photon.Hashtable props = new ExitGames.Client.Photon.Hashtable ();
deathCount++;
props.Add ("DeathCount", deathCount); // Update Our Death Count.
PhotonNetwork.player.SetCustomProperties(props);
That should do it, also I would change "DeathCount" to "DC" or something, the smaller, the more efficient network speed will be.2
Answers
-
ExitGames.Client.Photon.Hashtable props = new ExitGames.Client.Photon.Hashtable ();
deathCount++;
props.Add ("DeathCount", deathCount); // Update Our Death Count.
PhotonNetwork.player.SetCustomProperties(props);
That should do it, also I would change "DeathCount" to "DC" or something, the smaller, the more efficient network speed will be.2