diff --git a/Assets/Mirror/Examples/SyncDirection/Player.cs b/Assets/Mirror/Examples/SyncDirection/Player.cs index a754dfc5d..36a30ac29 100644 --- a/Assets/Mirror/Examples/SyncDirection/Player.cs +++ b/Assets/Mirror/Examples/SyncDirection/Player.cs @@ -5,9 +5,10 @@ namespace Mirror.Examples.SyncDir // ".SyncDirection" would overshadow the enum public class Player : NetworkBehaviour { public TextMesh textMesh; - [SyncVar] public int health; public Color localColor = Color.white; + [SyncVar] public int health; + public override void OnStartLocalPlayer() { textMesh.color = localColor;