To delay an explosion using the Invoke(...) method, follow these steps:
- Work on a copy of the previous recipe.
- Ensure you are logged into your Unity account in the Unity Editor.
- Open the Unity Asset Store in a web browser and log into your Unity account.
- Tick Free Assets and search for and select the free Free Bombs package on the Asset Store:
Figure 14.36 – The free Yughues Free Bombs assets on the Asset Store
- Click Add to My Assets. Then, after the button changes, click Open in Unity.
- In your Unity Editor, the Package Manager window should open, and the Free Bombs asset should be selected in the list of My Assets. Click Download and, when downloaded, click Import. In the Project window, you should now see a new folder called Meshes and inside that, a folder called Bomb Packs.
- Delete the crystal_17_2 GameObject from the scene.
- In the...