Hello. This is the part of my script Unity hates. I can't assign "obstacle" more than one time. How can I fix this and let it work? Thank you!
if(whichToSpawn == 0){
var obstacle = Ob_1;
}
else if(whichToSpawn == 1){
var obstacle = Ob_1;
}
else if(whichToSpawn == 2){
var obstacle = Ob_3;
}