How do I assign multiple materials to a gameobject through c# script?
What I have tried so far is:
public GameObject go;
public Material Mat1;
public Material Mat2;
void Start()
{
//this does not work
go.GetComponent<Renderer>().materials[0] = Mat1;
}