private void SpawnPerson(Person person) { if (DemoMode) { DemoSpawnPerson(person); } if (spawnPoints.Count == 0) { return; } GridSpawnPoint spawnPoint = spawnPoints[0]; if (spawnPoint.IsAvailable) { spawnPoint.Spawn(person); } spawnPoints.Remove(spawnPoint); spawnPoints.Add(spawnPoint); }
public void AddSpawnPoint(GridSpawnPoint spawnpoint) { spawnPoints.Add(spawnpoint); Shuffle(spawnPoints); }