If renderer.material.color help!??!?!!?

Here is my code, I am trying to make a script that after a certain amount of time, if the objects material is red it will end the scene.
42954-unity-answers.png

You should use “==” and “{”, check this:

if(renderer.material.color == Color.white){
renderer.material.color = Color.blue;
}

This should work :wink: