This commit is contained in:
Даниил Заикин
2026-06-17 20:44:53 +03:00
parent 9d153773c2
commit b133e7c656
1880 changed files with 244545 additions and 0 deletions
@@ -0,0 +1,15 @@
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<NetworkObject>().SpawnAsPlayerObject(NetworkManager.Singleton.LocalClientId);
}
}