Reader small image

You're reading from  Hands-On Unity 2021 Game Development - Second Edition

Product typeBook
Published inAug 2021
Reading LevelBeginner
PublisherPackt
ISBN-139781801071482
Edition2nd Edition
Languages
Tools
Right arrow
Author (1)
Nicolas Alejandro Borromeo
Nicolas Alejandro Borromeo
author image
Nicolas Alejandro Borromeo

Nicolas is a Game Developer currently working as a Senior Software Development Consultant for Unity in London. He is a Unity Certified Instructor teaching Unity clients all around the globe. He started using Unity in 2008 and teaching it in 2012 in several Universities and Education Institutes.
Read more about Nicolas Alejandro Borromeo

Right arrow

Summary

I'm pretty sure AI is not what you imagined; you are not creating SkyNet here, but we have accomplished a simple but interesting AI for challenging our Player, which we can iterate and tweak so that it's tailored to our game's expected behavior. We learned how to gather our surrounding information through sensors to make decisions on what action to execute using FSMs, as well as using different Unity systems such as Pathfinding and Animator to make the AI execute those actions. We used those systems to diagram a State Machine that's capable of detecting the player, running to them, and attacking them, and if the Player's not there, just going to the base and accomplishing the task of destroying it.

With this, we have ended Part 3 regarding C# scripting. In the next part, we are going to finish our game's final details. In this first chapter of the next part, we are going to learn how to optimize our game.

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Hands-On Unity 2021 Game Development - Second Edition
Published in: Aug 2021Publisher: PacktISBN-13: 9781801071482

Author (1)

author image
Nicolas Alejandro Borromeo

Nicolas is a Game Developer currently working as a Senior Software Development Consultant for Unity in London. He is a Unity Certified Instructor teaching Unity clients all around the globe. He started using Unity in 2008 and teaching it in 2012 in several Universities and Education Institutes.
Read more about Nicolas Alejandro Borromeo