Game Development Reference
In-Depth Information
Figure 11-7. The gnome's arrow
6.
Raise the arrow's Y Position until it clears the gnome's hat.
7.
Uncheck Cast Shaddows and Receive Shadows.
8.
Assign it to the Spy View Only Layer.
9.
Add the arrow to the Gnomatic Garden Defender object in the Hierarchy view.
10.
Click Play, and test.
Now there is no doubt about the direction the Gnomatic Garden Defender is facing (Figure 11-8 ).
Figure 11-8. The Gnomatic Garden Defender at work as seen from the spy map
In this game, because it is being developed for desktop deployment, you may not have seen a
drop in frame rate with the addition of the Camera Spy View. It is always worth considering ways to
optimize your game, even when not entirely necessary.
1.
In the Prefabs folder, assign the Gnomatic Garden Defender object, the
ZombieBunny's ZombieBunny child, and the Toasted Zombie to the Hide
From Spy layer. Agree to adding it to the children when prompted.
2.
Update the Gnomatic Garden Defender prefab using Apply on the one in the
Hierarchy view to add the arrow to the prefab.
 
Search WWH ::




Custom Search