Hi guys,
I have tried around a little bit with Unet but i can’t get SyncVar working. (see atached Error)
public class Player : NetworkBehaviour {
[SyncVar]
public string pname = "";
public void SetName(string newName)
{
pname = newName;
}
}
thats my NetworkBehaviour. SetName is only Called from the Server after the Player is created.
Hope you can help.
Thanks in advance.
Mabenan