Finished basic lobby code

This commit is contained in:
2026-05-19 22:43:27 +01:00
parent e8e6c710df
commit 32a731d228
21 changed files with 1016 additions and 45 deletions

View File

@@ -39,6 +39,8 @@ namespace PashaBibko.PenguinChase.Core.Network
private static void OnClientJoin(ulong id)
{
GameObject client = Instantiate(ClientPrefab);
DontDestroyOnLoad(client);
NetworkObject networkObject = client.GetComponent<NetworkObject>();
networkObject.SpawnAsPlayerObject(id);
}