From a8bb5e3647daf69707d5eec23536091bdeb592c2 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 22 Dec 2022 11:02:47 +0100 Subject: [PATCH] syntax --- Assets/Mirror/Examples/SyncDirection/Player.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;