- Home /
Two trigger activation.
I have a game where if you press "E" from a far enough distance, it will activate a blue door, but if you move closer and press "E", it will activate a red door. I am trying to figure out how to detect which collider is being triggered. Can someone please help?
Comment
far enough from where? and what trigger? one trigger each or just one?
anyways, I would check the distance to both doors when E press is happening AND the trigger (one for both doors) was entered, to distinguish between the two
There are two sphere colliders, each attached to different object, but both objects are parented to the main object with the main script.
Your answer
![](https://koobas.hobune.stream/wayback/20220612101259im_/https://answers.unity.com/themes/thub/images/avi.jpg)