Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Agent is the main component, and it makes use of behaviors in order to create intelligent movement."

A block of code is set as follows:

public override void Awake() 
{ 
    base.Awake(); 
    targetAgent = target.GetComponent<Agent>(); 
    targetAux = target; 
    target = new GameObject(); 
} 

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

public override void Awake() 
{ 
    base.Awake(); 
    targetAgent = target.GetComponent<Agent>(); ...

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.