Finished basic lobby code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user