Book Image

Mastering Unity 2D game development

By : Simon Jackson
Book Image

Mastering Unity 2D game development

By: Simon Jackson

Overview of this book

Table of Contents (21 chapters)
Mastering Unity 2D Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Overview
Index

Chapter 5. NPCs and Interactions

The world would be a lonely place if we were alone. So, in this chapter, we'll look to add in some more characters and give them something to say.

There are a few more fair technical solutions that Unity has under its belt; some are just programing-orientated, whereas some are specific to Unity. So, we'll go through each one of them and explain their pros and cons; plus, we'll look at some extensions that we can add to make them even better.

Note

This is a heavy scripting chapter. All the techniques explained are not used in this chapter but are important to know, and what's more important is to know the difference between them and when to use them.

The list of topics that will be covered in this chapter are as follows:

  • Advanced coding, delegates, events, and messaging

  • Coroutines

  • Scriptable objects and custom importers

  • Building a conversation system

  • Thinking beyond