Artificial intelligence (AI) is one of the things that can make or break a game. In this section, you will learn how to integrate an AI package for Unity in order to have characters roam around and attack players.
At the time of writing this, people generally tend to either use RAIN by Rival Theory (http://rivaltheory.com/rain/download/) or Shooter AI by Gateway Games (https://www.assetstore.unity3d.com/#/content/11292) if they are not writing their own package when dealing with AI using UFPS.
In this book, we will discuss both tools using RAIN to create a melee attacking enemy and Shooter AI to create a basic ranged shooting enemy. This is so that you have a better idea of how each works, and you can then weigh their pros and cons for your own title.
Note that I will mention the differences in using both tools in this chapter, but in later chapters, you will be able to choose which of the following you'd like to use for your own levels and encounters.