[Sync] and [Command] Attributes
Sync Attribute
[Sync]
public int health;[Sync("health")]
public float hp;Command Attribute
[Command]
public void Heal(int amount)
{
...
}[Command("Heal", typeof(int))]
public void IncreaseHp(float hp)
{
...
}Last updated
Was this helpful?

