From the last section, we now have our
Enemy object, but there is no movement, yet. So, in this section, we will create the core script to control our enemy by using the similar concept used for the
CharacterControl script in Project 4, The Hero/Heroine Part II—Animation and Controls, and
New3PSController in Project 5, Creating a Rocket Launcher. We will mix both the scripts and create a new script to control the movements of our enemy following the waypoint and detect the player using the
We will start by creating the
AIController, and double-click on it to open MonoDevelop. Since we need to attach ...