Patrolling the environment
We now have an animated NPC that follows a destination object using Unity's built-in pathfinding and steering behavior. This functionality is a solid foundation for creating the next component in our terrifying chicks' behavioral repertoire: the ability to patrol a specified area.
If you break down a patrol, it's just moving from one destination to another in a sequence. We have most of that functionality already. We only need to implement a sequence of destinations. Multiple approaches could be taken to achieve this. One method is through scripting. We could write a script that maintains an array of different waypoint objects and allows the chick to iterate through them on a loop so that when the NPC reaches one destination, they'll move on to the next one. This approach can be very efficient and is easily customizable, but there's also another method we could use. Instead of using a script, we can create an animation to move...