How to add score when i passe by a object?

Hello. i know how to add score, but the question is, i have a object on position x, y, and when my character passe by this object something happend, like add a score.

Use a Collider2D set as a trigger