how can i change texture of an object through the script?

one of my objects has more than one textures (for ex. a football object with yellow football or blue football texture, one at a time). Is it possible to change with script?? thankss…

Did you read this? Unity - Scripting API: Material.mainTexture