Game Development Reference
In-Depth Information
Illustration 75:
The tower of Exercise 6
7.
Create a breakable wood box that breaks when it receives
OnRaycastHit
message of
RaycastShooter
(Listing 49 in page 128). You need to use
Breakable
script from Listing 59 (page 150). Use pieces of appropriate numbers and sizes. As
a plus, try to add a permanent piece that represents valuable object for the player.