Players now not spawning exactly same space
This commit is contained in:
parent
0cc9832bed
commit
f4ba2d210c
|
@ -45,7 +45,7 @@ public class NetworkedGameSetup : NetworkBehaviour
|
||||||
|
|
||||||
for (int i = 0; i < playerIds.Count; i++)
|
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);
|
player.GetComponent<NetworkObject>().SpawnAsPlayerObject(playerIds[i], true);
|
||||||
players[i] = player;
|
players[i] = player;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue