use GetComponent instead of GetComponentInChildren

This commit is contained in:
JohnCorby 2022-07-13 13:48:43 -07:00
parent bad6d0f84d
commit c9ec50acad

View File

@ -212,8 +212,8 @@ namespace NewHorizons.Builder.Props
if (component is NomaiInterfaceOrb orb)
{
orb._parentAstroObject = planetGO.GetComponentInChildren<AstroObject>();
orb._parentBody = planetGO.GetComponentInChildren<OWRigidbody>();
orb._parentAstroObject = planetGO.GetComponent<AstroObject>();
orb._parentBody = planetGO.GetComponent<OWRigidbody>();
}
}
else