Hey! I am trying to make an amount of gameobjects render when a boolean is true. Here is my code:
if(buyTowerMenuUp == true){
towerPlace[] = GameObject.FindGameObjectsWithTag("TowerPlace");
for(var x = 0; x < towerPlace.length; x++){
towerPlace[x].renderer.enabled;
}
}
Thanks in advance!
1. You didn't include a question. 2. try ...renderer.enabled = true;
– ExTheSeatry towerPlace[x].renderer.enabled = true;
– ExTheSeaIt says that I have to insert a semicolon at the towerPlace[] = GameObject.FindGameObjectsWithTag("TowerPlace"); line
– FetdressingAnd thanks, that helped aswell :)
– Fetdressing