Learning to match exact Alphabetical cases when writing string in code is programming wisdom 101.
if (refToTrafficLightchanges.lightout == “Put On Yellow Light”)
{
this.gameObject.GetComponent().color = new Color(1f, 1f, 0.0f, 1f);
}
if (refToTrafficLightchanges.lightout == “put on Yellow Light”)
{
this.gameObject.GetComponent().color = new Color(1f, 1f, 0.0f, 1f);
}