mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
commit
212e16b5f0
@ -70,7 +70,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static GameObject Make(GameObject planetGO, Sector sector, DetailInfo info)
|
public static GameObject Make(GameObject planetGO, Sector sector, DetailInfo info)
|
||||||
{
|
{
|
||||||
_emptyPrefab ??= new GameObject("Empty");
|
if (_emptyPrefab == null) _emptyPrefab = new GameObject("Empty");
|
||||||
|
|
||||||
// Allow for empty game objects so you can set up conditional activation on them and parent other props to them
|
// Allow for empty game objects so you can set up conditional activation on them and parent other props to them
|
||||||
var prefab = string.IsNullOrEmpty(info.path) ? _emptyPrefab : SearchUtilities.Find(info.path);
|
var prefab = string.IsNullOrEmpty(info.path) ? _emptyPrefab : SearchUtilities.Find(info.path);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user