The material.color shortcuts changes the “_Color” material property but you’re setting the “_color” (lower-case “c”) property. Property names are case-sensitive, so you’re setting one but reading a different property.
If you use material.color, you should use it to both get and set the color. Otherwise, use both material.GetColor and material.SetColor. I wouldn’t mix the two.