Pun2 PhotonNetwork.Player.SetScore
I remember on Pun Classic I could do that PhotonNetwork.Player.SetScore(0) and it would sync to all players. What is the corresponding command in Pun2?
0
Best Answer
-
Hi @BillyTheKid,
in PUN 2 it'sPhotonNetwork.LocalPlayer.SetScore(0);
. Please note, that you have to addusing Photon.Pun.UtilityScripts;
because the PunPlayerScores class has been moved to another namespace.5
Answers
-
Hi @BillyTheKid,
in PUN 2 it'sPhotonNetwork.LocalPlayer.SetScore(0);
. Please note, that you have to addusing Photon.Pun.UtilityScripts;
because the PunPlayerScores class has been moved to another namespace.5