mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
4434ab1be3
commit
a8bb5e3647
@ -5,9 +5,10 @@ namespace Mirror.Examples.SyncDir // ".SyncDirection" would overshadow the enum
|
|||||||
public class Player : NetworkBehaviour
|
public class Player : NetworkBehaviour
|
||||||
{
|
{
|
||||||
public TextMesh textMesh;
|
public TextMesh textMesh;
|
||||||
[SyncVar] public int health;
|
|
||||||
public Color localColor = Color.white;
|
public Color localColor = Color.white;
|
||||||
|
|
||||||
|
[SyncVar] public int health;
|
||||||
|
|
||||||
public override void OnStartLocalPlayer()
|
public override void OnStartLocalPlayer()
|
||||||
{
|
{
|
||||||
textMesh.color = localColor;
|
textMesh.color = localColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user