O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Game over-Wrapping it up

In this chapter, we just created the Waypoints 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 AIController script. This script used the mix of CharacterControl script from Project 4, The Hero/Heroine Part II—Animation and Controls, and New3PSController script from the Project 5, Creating a Rocket Launcher.

We also learned more about the Gizmos() function to display the visual of our Waypoints empty game object by using Gizmo.DrawIcon(), Gizmo.DrawLine(), and Gizmo.DrawWireSphere().

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required