Time for action – creating the enemy
We will need to import and do a little setup on a second tank, before we can do any AI type programming:
- Select
Tanks_Type03.png
andTanks_Type03.blend
from the starting assets for the chapter and import them to theTanks
folder under theModels
folder. - Once Unity has finished importing, select the new tank in the Project window and take a look at it in the Inspector window.
- This tank has no animations, so the Animation Type can be set to None and Import Animation can be unchecked from the Rig and Animations pages respectively.
- Drag the tank from the Project window to the Scene window; any clear patch of street will work just fine.
- For starters, rename the model in the Scene view to
EnemyTank
. - Now, we need to change ...
Get Unity Android Game Development by Example Beginner's Guide 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.