Hello,
I have an "enemy" with three child gameobjects, each with its own trigger collider (each set at a different radius) and its own FSM. The parent also has an FSM that I want to use to control its behavior (simple movement). My goal is to have it so that depending on which "zone" the player is in (as determined by 3 triggers), the enemy behaves differently. Currently, I have it set up to where once the first collider is triggered, an event is sent which transitions the sibling FSM (via global transition) to begin monitoring the next inner collider, and so on. What I want to know is, what would you recommend I do within the parent FSM to monitor which "zone", and therefore which behavior, to engage in. I could send other events from the children, with global transitions in the parent FSM, OR, I could store global bools and perform bool tests in the parent FSM. I am concerned about performing a bool check every frame, though I may be wrong. How would you implement this?