I know this is a bit of a stupid question, but how would I reference the child (a cube) of a game object via script(the script is attached to the gameObject). (the equivalen
You could have public variable in parent gameObject.
public Tranform childGameObject;
and then assign your child gameObject to it.
This way you avoid hidden dependencies. As well as your child cube can be inside of another parent and another parent.