I'm having a problem where all of the lines of sight that my enemies have act uniformly. This is what they are supposed to look like:
However, the moment I walk into the line of sight of this enemy (he is the first enemy that appears in the level and it only works with him) then all of the other lines of sight follow that same behavior, and I have no idea why because all of the lines of sight are in containers with the enemies. Shown here:
Here's the code I'm using where I think the problem is occuring:
Is there something wrong with what I'm doing?