using UnityEngine; using System.Collections; public class PlayerCC : MonoBehaviour { private Material mat; void Start () { mat = GetComponent<MeshRenderer>().material; } void Update () { mat.color = Color.Lerp(mat.color, Color.red, Time.deltaTime); } }