public extern void Lerp(Material start, Material end, float t); /// <summary>
IEnumerator MaterialLerp(Material material,float time) { float moveTime = 0.0f; while(moveTime < time){ moveTime += Time.deltaTime; material.Lerp(material1, material2, moveTime/time); yield return null; } }