However, this just changes the color of his head which happens to te the top shape in the hierarchy. How can I change just the body, feet, or all the shapes that make up the “enemy”?
You’ll need to go through thte hierarchy and do the same with each renderer. otherwise you could instance a copy of the material and assign it to all the parts using .sharedMaterial at which point you can edit the material to reflect the change everywhere its shared.