using Unity.Netcode; using UnityEngine; public class GameBootstrapper : MonoBehaviour { [SerializeField] private GameObject playerPrefab; private void Start() { NetworkManager.Singleton.StartServer(); GameObject go = Instantiate(playerPrefab); go.GetComponent().SpawnAsPlayerObject(NetworkManager.Singleton.LocalClientId); } }