unity accessing script in child gameobject 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