im trying to set my boolean depending on the provided color to certain gameobjects.
var red:Material;
var green:Material;
var rightswitch:boolean;
function start(){
if (renderer.material == red){
print(“ok”);
rightswitch = false;
}else{
rightswitch = true;
}
}