mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
add all da sun station debris instead of just the first one
This commit is contained in:
parent
b130387bc6
commit
d2009f7637
@ -131,7 +131,8 @@ namespace NewHorizons.Utility
|
|||||||
case AstroObject.Name.CustomString:
|
case AstroObject.Name.CustomString:
|
||||||
if (primary._customName.Equals("Sun Station"))
|
if (primary._customName.Equals("Sun Station"))
|
||||||
{
|
{
|
||||||
otherChildren.Add(GameObject.Find("SS_Debris_Body"));
|
// there are multiple debris with the same name
|
||||||
|
otherChildren.AddRange(GameObject.FindObjectsOfType<GameObject>().Where(x => x.name == "SS_Debris_Body"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user