mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
use GetComponent instead of GetComponentInChildren
This commit is contained in:
parent
bad6d0f84d
commit
c9ec50acad
@ -212,8 +212,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
if (component is NomaiInterfaceOrb orb)
|
if (component is NomaiInterfaceOrb orb)
|
||||||
{
|
{
|
||||||
orb._parentAstroObject = planetGO.GetComponentInChildren<AstroObject>();
|
orb._parentAstroObject = planetGO.GetComponent<AstroObject>();
|
||||||
orb._parentBody = planetGO.GetComponentInChildren<OWRigidbody>();
|
orb._parentBody = planetGO.GetComponent<OWRigidbody>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user