how to access sub objects of a game object untiy code example
Example: unity access child
// To acces a child of a gameObject use the combination below
parentGameObject.transform.GetChild(0).gameObject
// To acces a child of a gameObject use the combination below
parentGameObject.transform.GetChild(0).gameObject