Game Development Reference
In-Depth Information
Then, we will click on
RocketLauncher
to bring up its
Inspector
view and set up the
Transform
and
Rocket Launcher (Script)
as follows:
F
Transform
:
Position
X: 0.28
Y: 0.31
Z: 1.55
F
Rocket Launcher (Script)
Smoke Position
:
SmokePosition
(Drag the
SmokePosition
in the
robot_
AI
prefab, as shown in the following screenshot.)
Ammo Count
:
-1
The last thing in this secion—we will set up the posiion of our
Enemy
game object, which
is the parent of the
AI
game object. So, let's click on the
Enemy
game object and go to its
transform posiion, and then set the following:
F
Position
X: -2.43
Y: 1.3
Z: 4.9
Now, we are done with this secion. In the next secion, we will create the script to control
our enemy to be able to walk, run, jump, and shoot.
Objective Complete - Mini Debriefing
In this step, we just created the
Enemy
and
AI
empty game objects, which will be the
container of the
Waypoints
game object and
AI
game object. In the
AI
game object, we
also added the
robot_AI
prefab and
RocketLauncher
prefab.