Game Development Reference
In-Depth Information
2.
Drag the Potato and the Pile O' Potatoes into the Staging Area from the
Prefabs folder.
3.
Add a Sphere Collider to the Pile O' Potatoes, and adjust it to fit.
4.
At the top of the Inspector, click Apply to update the Prefab.
5.
Duplicate the pile and single potato around the staging area for effect
(Figure 8-4 ).
Figure 8-4. The potatoes artfully deployed around the staging area
6.
Create an Empty GameObject, and name it Lots of Potatoes .
7.
Drag the new potatoes into the group, and drag it into the Staging Area object.
To allow the ammunition potato to be affected by gravity and to register collisions, it must have a
Rigidbody component. You will be adjusting its Mass and the projectile's Speed parameter to make
the game more challenging.
1.
Focus in on the Gnomatic Garden Defender—it should be in the left or right
ortho view you used to set up the Fire Point object.
2.
Drag the new potato into the Scene view, and rename the Potato
PotatoAmmo .
3.
With the help of the “flat” ortho views, position it at the end of the Bazooka
(Figure 8-5 ).
 
Search WWH ::




Custom Search