Skip to Content
Learning C# by Developing Games with Unity - Seventh Edition
book

Learning C# by Developing Games with Unity - Seventh Edition

by Harrison Ferrone
November 2022
Beginner content levelBeginner
466 pages
9h 55m
English
Packt Publishing
Content preview from Learning C# by Developing Games with Unity - Seventh Edition

9

Basic AI and Enemy Behavior

Virtual scenarios need conflicts, consequences, and potential rewards to feel real. Without these three things, there’s no incentive for the player to care about what happens to their in-game character, much less continue to play the game. And while there are plenty of game mechanics that deliver on one or more of these conditions, nothing beats an enemy that will seek you out and try to end your session.

Programming an intelligent enemy is no easy task, and often goes hand in hand with long working hours and frustration. However, Unity has built-in features, components, and classes we can use to design and implement AI systems in a more user-friendly way. These tools will push the first playable iteration of

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning C# by Developing Games with Unity 2021 - Sixth Edition

Learning C# by Developing Games with Unity 2021 - Sixth Edition

Harrison Ferrone

Publisher Resources

ISBN: 9781837636877Supplemental Content