using System.Globalization; using Unity.Netcode; using UnityEngine; public class InvisibleForLocalPlayer : NetworkBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { foreach (var r in GetComponentsInChildren()) { r.enabled = !IsOwner; } } }