Game Development Reference
In-Depth Information
6. Still in the
Hierarchy
view, we will click on the
Break
game object and then
drag the
Rocks
script on it, as shown in the following screenshot:
Now that we are done with the project, we can click on play to see the result. We
will see that if we are entering the trigger area, the rocks will start falling down,
as shown in the following screenshot: