I have an script attached to my gameObject that create 3 network variables, at the OnNetworkSpawn(), every time these variables values change it exibits this error, even though the gameObject is already properly instantiated. I dont know why this error is showing, the Network Variable is being created at the right method and Im changing it after instatiated the gameObject.
public override void OnNetworkSpawn()
{
if (!IsOwner)
return;
_maxBombAmount = 6;
_maxRadius = 5;
_bombFuseTime = 3f;
_bombsRemaining = new NetworkVariable<int>(1, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
_bombAmount = new NetworkVariable<int>(1, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
_explosionRadius = new NetworkVariable<int>(1, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
_manageDrops = ManageDrops.Instance;
base.OnNetworkSpawn();
}