Change the alpha of a gameobject with multiple childs

Okay so, i have a house GO with multiple childs and i would like to make the childs transparent when the player enters on the house, is there any way to change the alpha of the childs or the gameobject since they do not use the same mats, just need to know how to!
btw i’m using OnTriggerEnter to get this working

List() allChildRenderers;
allChildRenderers.AddRange(GetComponentsInChildren();
foreach (Renderer r in allChildRenderers){
Color c = r.material.color;
c.a = 0.5f;
r.material.color = c;
}