I have trigger that is supposed to activate when a Player tag enters it and do nothing when an object with AI tag enters. Both gameobjects are pre-fabs.
It seems to trigger when any tag is in the trigger area. I want to only trigger when the player enters.
So, in reading the forums is there still an issue of detecting pre-fab with child colliders? Or is it my flow:
Idle -> PlayerCrossesLine
Trigger Enter Trigger Event
Collidertag = Player --> [Show Menu]
Trigger Event
Collidertag = AI --> [go back to Idle]
How to set up conditional logic based on the gameobject tag? Would it be better to use Trigger Info and get the tag name?
Secondly, after the trigger enters fires once, shouldn't it fire again when another object enters? It seems stuck in the 2nd state even if another object enters the trigger.
Thanks.