Hi,
I'm having a problem where my variables of "Color" don't match.
This works:
var variable= Color.green;
switch(variable){
case Color.green: Debug.Log("Works"); break;
}
This does not work:
var variable= Color(0.5, 1, 0.5, 1);
switch(variable){
case Color(0.5, 1, 0.5, 1): Debug.Log("Doesn't work"); break;
}
I tried turning Color(0.5, 1, 0.5, 1) into a static variable, but that didn't change anything. Is there something simple I'm missing?