I recently built a game where you shoot the turrets. What I want to know is how make a turret counter script and when the turrets are all shot for it (the game) to go to the main menu to choose another level.
Thanks in Advance
easiest way is to have a towermanager that creates the original towers and whenever a tower dies, it calls a function on the tower manager to inform him of his death so the counter etc can be updated
create a new tag called turret or something and apply it to the turrets. once youve got them all tagged go into your player move script and look at the part that controls bullet collisions - itll say something like hit.gameobject.tag (“player”) - then copy that bit out, change the tag to turret. once youve done that create a static variable called turretcount, give it a value of 0 and change the instructions under the hit.gameobject.tag to add one to turretcount. you may want to merge this script with your turret control script!
hope i was helpful,
regards, ><>FreakFish<><