Game Development Reference
In-Depth Information
Mission accomplished
In this project, we created
Waypoint
,
WaypointsContainer
and
WaypointsCon-
tianerEditor
for the enemy to follow. We also created the enemy AI that can jump,
run towards the player, walk, and stop for a certain time by creating the AI script. This
script is derived from the
CharacterClass
script that is based on the
Character-
Control
script from
Project 5
,
Build a Rocket Launcher!
.
We also learned more about the
Gizmos()
function to display the visual of our
Waypo-
int
empty game object by using
Gizmo.DrawIcon()
,
Gizmo.DrawLine()
, and
Gizmo.DrawWireSphere()
.
We also learned how to use the
CustomEditor
class as well as
SerializedObject
and
SerializedProperty
to create a cool custom editor for our
WaypointsCon-
tainer
script.
Finally, we learned how to use the
GUI.BeginGroup()
function to mask and show the
hit-point UI object for the player and the enemy.
So, let's take a look at the following screenshot to see what we have done so far: