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.
- Start by opening the
Target
script and adding the following line of code to the end of theAwake
function. This line tells theIndicatorControl
script to create a new indicator slice for this target.IndicatorControl.CreateSlice(transform);
- On playing the game now, you can see the indicator in action. However, it is probably too large and certainly appears ...
Get Unity Android Game Development by Example Beginner's Guide 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.