agents
field does nothing for the transforms
and other related fields, which causes problems throughout the code if updating the list dynamically.DoUpdate
method to look for GameObject
s tagged with a given tag. My Behavior Tree that spawns enemies tags them appropriately, and they automatically are recognized and added to the Leader Follow list, and get movement behavior appropriately. You add the Task as Tagged Leader Follow, instead of just Leader Follow.