Quantcast
Channel: Answers for "If statement not working"
Browsing all 6 articles
Browse latest View live

Answer by Alec Slayden

You have nested it in your switch statement. Just move it outside the next closing bracket.

View Article


Answer by Uzquiano

Hi,Obviously, because it is inside the 'switch(buildingType)' so if it goes always to any case the 'switch' statement is over because of the 'break'It should be something like thisswitch (buildingType)...

View Article


Answer by Scribe

var ground : GameObject; var numberOfBuildings : int = 20; var inititalBuildingNumber : int =20; var numberOfRows : int = 5; var building1 : GameObject; var building2 : GameObject; var building3 :...

View Article

Answer by Alec-Slayden

You have nested it in your switch statement. Just move it outside the next closing bracket.

View Article

Answer by Uzquiano

Hi,Obviously, because it is inside the 'switch(buildingType)' so if it goes always to any case the 'switch' statement is over because of the 'break'It should be something like thisswitch (buildingType)...

View Article


Answer by Scribe

var ground : GameObject; var numberOfBuildings : int = 20; var inititalBuildingNumber : int =20; var numberOfRows : int = 5; var building1 : GameObject; var building2 : GameObject; var building3 :...

View Article
Browsing all 6 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>