Well, how wonderful. Im using Photon. Okay i have a playerprefs for the playerlevel. I have also a mask and a grid were you can see all joined players included there level. So when a player joined the room. A UI obj is instantiated within 2 objects as child. (Playername and playerlevel)
Playername is already working but the playerlevel is a great mess since its info comes from a playerprefs. How can I sync the playerlevel for all joined people?
public Text Playerlevel;
void Start ()
{
Playerlevel.text = "level " + Playerprefs.GetFloat ("Playerlvl");
}
void Update ()
{
if (photonView.isMine)
....
}
It drives me crazy. Playerlevel.text is the child of the "roommask"
Please help. This is a very great problem.
Playername is already working but the playerlevel is a great mess since its info comes from a playerprefs. How can I sync the playerlevel for all joined people?
public Text Playerlevel;
void Start ()
{
Playerlevel.text = "level " + Playerprefs.GetFloat ("Playerlvl");
}
void Update ()
{
if (photonView.isMine)
....
}
It drives me crazy. Playerlevel.text is the child of the "roommask"
Please help. This is a very great problem.