using System;
public class Test : MonoBehaviour
{
void Start()
this.GetComponent<MeshRenderer>().sharedMaterial.color = Color.red;
}