Configuring the enemies
So far, we have already built a solid foundation for our RTS game, with a flexible UI and controllable units. Now, we are going to start adding all the enemies the player will face in the game and prepare another layer of a solid strategy game. The enemies will be an Orc, fast but a bit weak on its own; a powerful Golem, which is slower than the Orc but much stronger and resistant; and our mighty boss, the Red Dragon, which will be a challenge for the player.
Figure 9.1 – The Orc, Golem, and Red Dragon enemies
All the enemies in the preceding figure have their Prefabs located inside packages that were already imported into the project in Chapter 2, Setting Up Unity and the Project, so we have all the Prefabs that we need. However, we will need to tweak their animation states, as we did for both Warrior and Mage. That is because the animation states are set up as a loop through all states, and we want to control each animation...