Test your knowledge

Q1. Many AI behaviours can be encoded using...

  • A. Finite State Machine
  • B. An if statement
  • C. An Animator
  • D. A Navigation Mesh

Q2. States can be created using a...

  • A. Coroutine
  • B. Switch statement
  • C. Static Variable
  • D. A loop

Q3. One alternative to a State Machine is...

  • A. A Mesh Renderer
  • B. Behaviour Tree
  • C. Static Variable
  • D. A Component

Q4. Yield statements are often used to...

  • A. Pause and Terminate Coroutines
  • B. Rewind Coroutines
  • C. Restart Coroutines
  • D. Delete Coroutines

Q5. Line of sight determines...

  • A. Whether one object can be seen by the camera
  • B. Whether one object can see nothing
  • C. Whether one object can see another
  • D. Whether one object can see anything

Get Unity 2018 By Example - 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.