Hit counter keeps on counting every hit


My player object keeps get a new hit detected, even with the script saying when it got a hit tag to not register a new hit.
here is the code i use


Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?

If so, add a Debug.Log to your code to figure out with which game object the other game object collided. If you don’t know how to log the name of the other game object into your console, please take a look at this example in the API:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms