changing color of material of renderer with multiple materias

Code Example - changing color of material of renderer with multiple materias

                
                        renderer.materials[i].color = color;