![Unity 2018 Artificial Intelligence Cookbook(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/543/36699543/b_36699543.jpg)
上QQ阅读APP看书,第一时间看更新
Getting ready
We need to create a tag called Agent and assign it to those game objects that we would like to avoid, and we also need to have the Agent script component attached to them:
![](https://epubservercos.yuewen.com/6E49B3/19470389808865706/epubprivate/OEBPS/Images/7276be47-1736-434b-9e0a-366b7d9f8475.png?sign=1739297454-AYUeBcktcbhsvEBYFjkRCPhg0Vubp42B-0-7473f314754740cc9e84590785e7ce9e)
Example of how the Inspector window of a dummy agent should appear
Take a look on the following:
- Tag: Agent (created by us)
- Agent component is attached (the one created by us)