Now we are at the last step of this chapter. We will add the hit-point game object for the player and enemy as well as create the
Before we start creating the
, we will need to create the
HitPointUI game object to contain it:
HitPointUI. Then, we will reset the Transform to default as follows:
HitPointUI, double-click on it to open MonoDevelop, and replace it with the following code:
public var ai : AIController; public var player : ...