mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
make spawns show up in PlayerSpawner.FindPlanetSpawns
This commit is contained in:
parent
b779d6e3d5
commit
1469669664
@ -40,6 +40,7 @@ namespace NewHorizons.Builder.General
|
|||||||
foreach (var point in module.playerSpawnPoints)
|
foreach (var point in module.playerSpawnPoints)
|
||||||
{
|
{
|
||||||
GameObject spawnGO = GeneralPropBuilder.MakeNew("PlayerSpawnPoint", planetGO, null, point);
|
GameObject spawnGO = GeneralPropBuilder.MakeNew("PlayerSpawnPoint", planetGO, null, point);
|
||||||
|
spawnGO.SetActive(false);
|
||||||
spawnGO.layer = Layer.PlayerSafetyCollider;
|
spawnGO.layer = Layer.PlayerSafetyCollider;
|
||||||
|
|
||||||
playerSpawn = spawnGO.AddComponent<SpawnPoint>();
|
playerSpawn = spawnGO.AddComponent<SpawnPoint>();
|
||||||
@ -69,6 +70,8 @@ namespace NewHorizons.Builder.General
|
|||||||
PlayerSpawn = playerSpawn;
|
PlayerSpawn = playerSpawn;
|
||||||
PlayerSpawnInfo = point;
|
PlayerSpawnInfo = point;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spawnGO.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user