From f4ba2d210c85af0eded2f4fa711cf4777222f931 Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Mon, 4 Mar 2024 17:46:15 +0100 Subject: [PATCH] Players now not spawning exactly same space --- Assets/Scripts/Multiplayer/NetworkedGameSetup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Multiplayer/NetworkedGameSetup.cs b/Assets/Scripts/Multiplayer/NetworkedGameSetup.cs index 44b9e13..4b2445d 100644 --- a/Assets/Scripts/Multiplayer/NetworkedGameSetup.cs +++ b/Assets/Scripts/Multiplayer/NetworkedGameSetup.cs @@ -45,7 +45,7 @@ public class NetworkedGameSetup : NetworkBehaviour for (int i = 0; i < playerIds.Count; i++) { - GameObject player = Instantiate(PlayerPrefab, Vector2.up * 3, Quaternion.identity); + GameObject player = Instantiate(PlayerPrefab, Vector2.right * i * 2, Quaternion.identity); player.GetComponent().SpawnAsPlayerObject(playerIds[i], true); players[i] = player; }