Game Development Reference
In-Depth Information
Illustration 72: Dependency trees between building blocks: when the root destructs, the whole tree must
eventually be destructed. Roots are displayed as small squares
Now we want to be somehow able to perform the desired destruction on the building. To do
this, we are going to use a script that generates an explosion when the left mouse button is
clicked. MouseExploder script shown in Listing 57 is the second script we need to add to
the prefab of our building block.
Search WWH ::




Custom Search