I’m having a problem checking if the collider that is triggering the OnTriggerStay function is the Player, I’ve tried a few ways and nothing is working. I’ve tested it to the point where I know the problem is in the condition of the if statement. What am I doing wrong?
Update: Upon further testing, it seems that col.gameObject is referencing the VisionCollider, so I need to find out how to know if the Player object is what’s triggering it.
Some screenshots of setup and code:
