I am trying to build an enemy that does an event only if the player shines light into its eyes. So far, the raycast does not stop from any collider, so it triggers from any direction... even from behind the enemy.
In the image attachment, if the checkmark part was hit with a raycast, then the event would appear. But ONLY from the front or front side.
I have tried all sorts of combinations with Game Object Compare Tag and Layers. Got a hunch that the answer might be somewhere with those two.