O'Reilly logo

Unity Android Game Development by Example Beginner's Guide by Thomas Finnegan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating the target state machine

The use of a state machine allows us to focus more on what the target is doing, while letting Unity handle the how it is going to do it part.

  1. Creating an Animator Controller is simple and done just as we have been doing for our scripts and materials. The option is second from the bottom of the Create menu. Create one in the Targets folder and name it TargetController.
  2. Double-click on TargetController to open a new window.
    Time for action – creating the target state machine
  3. The Animator window is where we edit our state machines.
    • At the top-left corner of the window, there is a breadcrumb trail as you might find on a website that lets us see where we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required