I noticed that you can set up multiple materials on a Plane in the inspector. I need the material to change based on a global static int variable from another script. Here is what I am referring to:
[8952-screen+shot+2013-03-14+at+2.40.25+pm.png|8952]
My question is, how do I access these materials from the code (in C#) so I change them based on the score? I am struggling with these because a Plane does not have a renderer, nor can I use it as a global variable because it seems to be just a Struct with a Vector3 and a Float from the documentation.
Appreciate any help.