small fix for nomai orbs

This commit is contained in:
FreezeDriedMangoes 2022-07-13 08:45:48 -04:00
parent 3abaf1e37a
commit bad6d0f84d

View File

@ -209,6 +209,12 @@ namespace NewHorizons.Builder.Props
playerAttachPoint._playerTransform = playerBody.transform; playerAttachPoint._playerTransform = playerBody.transform;
playerAttachPoint._fpsCamController = GameObject.Find("Player_Body/PlayerCamera").GetComponent<PlayerCameraController>(); playerAttachPoint._fpsCamController = GameObject.Find("Player_Body/PlayerCamera").GetComponent<PlayerCameraController>();
} }
if (component is NomaiInterfaceOrb orb)
{
orb._parentAstroObject = planetGO.GetComponentInChildren<AstroObject>();
orb._parentBody = planetGO.GetComponentInChildren<OWRigidbody>();
}
} }
else else
{ {