Debug.Log prints additional hits

Hey! I’m back learning C# and hopefully back for good haha; I don’t want to challenge fate. Anyhoooo, I encountered a weird bug where my PlayerPawn/Dodgy kept racking up points in the log even tho the code (I think) says it shouldn’t; after the tag was changed to Hit.
image
image

(hopefully this prints well enough)

You are not changing the PlayerPawn object’s tag to “Hit”, but the ObjectHit game object’s tag

Haha, you’re absolutely right :flushed:. Thanks, I’ll try this tomorrow.

No I don’t think that’s it, thanks anyways. going to move along with the course. Here’s to hoping it doesn’t come to haunt me in the end :sweat_smile:

Ok so I finally figured out what my stupid monkey brain had done; the scorer script was on the cubes as well :laughing:. It’s only intended to be on the PlayerPawn. Ooof!

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

Privacy & Terms