Enemy Scripts
This section contains the final scripts that are used to control the game’s enemies. Note that it does not include the FlightPoints script used by the Fly enemy type; that is located in the “Game System Scripts” section under Listing A.11. You’ll find the following scripts here:
Listing A.6: The EnemyController Script
Listing A.7: The EnemySlime Script
Listing A.8: The FlyController Script
Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.