mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Make detail with path
This commit is contained in:
parent
a4f972a99c
commit
ba2758792c
@ -96,6 +96,17 @@ namespace NewHorizons.Builder.Props
|
||||
detailInfoToCorrespondingSpawnedGameObject[detail] = detailGO;
|
||||
}
|
||||
|
||||
public static GameObject MakeDetail(GameObject planetGO, Sector sector, PropModule.DetailInfo info)
|
||||
{
|
||||
var prefab = SearchUtilities.Find(info.path);
|
||||
if (prefab == null)
|
||||
{
|
||||
Logger.LogError($"Couldn't find detail {info.path}");
|
||||
return null;
|
||||
}
|
||||
else return MakeDetail(planetGO, sector, prefab, info);
|
||||
}
|
||||
|
||||
public static GameObject MakeDetail(GameObject planetGO, Sector sector, GameObject prefab, PropModule.DetailInfo info)
|
||||
{
|
||||
if (prefab == null) return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user