How to get children objects from parent name

I am using this piece of code to see if the user is hovering over the object by the name of “townhall”

hit.collider.gameObject.name == "townhall"

But, what I want is to see if the user is hovering over the children of the object by the name of “townhall”

if(hit.collider.transform.parent != null && hit.collider.transform.parent.name == “townhall”)