Check For Distance

The thing I like about the course is they let us figure things out on our own. I had my check for distance done a very different way. I used box colliders and triggers. Once an enemy came in to the box collider the tower would shoot. Just the reverse when it left. The problem I was having was, stopping the tower from firing when the enemy died. Still stuck here at the moment will figure it out. I changed my code to what everyone else has. So that I can work past any future problems easier. Any ways here is my Check For distance Vid.

Privacy & Terms