Inconsistent Value

Hello Team,

This is my first question ever, and well… I really appreciate the fact that everyone is taking the time to read this post. A big thank you to everyone!.

I am working with a On Controller Collider Hit method that is attached to Unity’s first person controller character, I am trying to make a score system where… For every collected box an Integer score value will increase 1 point. The problem comes when I run the game the value increases 3 points instead of 1. Could you please help me to understand the reason behind this inconsistency?. Attached you’ll find my code and a sample of the issue.

Thank you!

Hello can you share picture of object with inspector open. Are you sure other objects do not have this tag?
I recommend you put also this Debug.Log(gameObject.name); so you will be sure what you did hit. Can’t really tell what’s problem for now.