Time for action – let's get lazy
There's no need to create an entirely separate script for the stein. Follow these steps to get more bang for your buck out of a single script:
Find the script you called Bomb Script in the Project panel, and rename it FallingObject. Because we'll be using the script more generically, we should give it a more generic name.
Note
Renaming a Script in the Editor is fine for UnityScript, but you'll cause problems if you rename a C# Script in this way, without also changing the Class declaration at the top of the Script in MonoDevelop.
In the Project panel, select the Stein Prefab (not the Stein Model).
Choose Component | Scripts | FallingObject in the menu to attach the script to the Prefab.
In the Inspector panel, you should see that the FallingObject has been added as a Script component to the Stein Prefab.
As we did earlier with the Bomb Prefab, find the Glass Smash Prefab in the Project panel. Click-and-drag it into the stein's
prefab
variable. By doing this, you...