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 – working with a second camera

If you were to play the game now, it would still look no different. This is because the targets do not yet make the call to create the indicator slices. We will also be adding that second camera in this section as we finish off the target indicator.

  1. Start by opening the Target script and adding the following line of code to the end of the Awake function. This line tells the IndicatorControl script to create a new indicator slice for this target.
    IndicatorControl.CreateSlice(transform);
    Time for action – working with a second camera
  2. On playing the game now, you can see the indicator in action. However, it is probably too large and certainly appears ...

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