Players now not spawning exactly same space

This commit is contained in:
BOTAlex 2024-03-04 17:46:15 +01:00
parent 0cc9832bed
commit f4ba2d210c
1 changed files with 1 additions and 1 deletions

View File

@ -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<NetworkObject>().SpawnAsPlayerObject(playerIds[i], true);
players[i] = player;
}