Creating the second enemy controller

To create the second enemy controller, we can start by duplicating the enemy controller; just select it and press Ctrl + D (if you are a Mac user, you need to press Command + D). The new script should be renamed  EnemyControllerSmartAttacker.

Double-click to open it, and change the class name to EnemyControllerSmartAttacker, like the following:

// [...] 
public class EnemyControllerSmartAttacker : MonoBehaviour { 
   // [...] 
} 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset