mirror of
https://github.com/Kaveinator/NetickProForUnity.git
synced 2025-10-26 09:49:06 -07:00
Made a small change to PlayerSpawner in how the spawn position is calculated.
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Netick.Samples
|
||||
{
|
||||
var spawnPos = SpawnPosition.position;
|
||||
if (StaggerSpawns)
|
||||
spawnPos += (HorizontalOffset * Vector3.left) * (1 + sandbox.ConnectedPlayers.Count);
|
||||
spawnPos += (HorizontalOffset * Vector3.left) * (sandbox.ConnectedPlayers.Count - 1);
|
||||
var player = sandbox.NetworkInstantiate(PlayerPrefab, spawnPos, SpawnPosition.rotation, client);
|
||||
client.PlayerObject = player;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user