how to make a caupsle cahnage a color throw code unity code example
Example: unity set material color
//Gets the renderer material and sets color
object.GetComponent<Renderer>().material.color = newColor;
//Gets the renderer material and sets color
object.GetComponent<Renderer>().material.color = newColor;