In this chapter, we have seen how to use Prefabs to quickly replicate and clone GameObjects. So, before you continue with the next chapter, let's get good at using Prefabs.
The following two exercises are needed to have the game completed at the end:
Arming the Cupcakes Towers (Part I):Inside
projectiles_sheet_01
in theGraphics/projectiles
folder, there are nine different projectiles; however, we used only one,Pink_Sprinkle
. Create the other eight Prefabs, with meaningful names. Don't forget to attach the projectile script to all of them. Do not worry too much about the values assigned inside the script, such as the damage, since we will see the balance of the game later on in the book. However, do not forget to assign the right Z value and the proper tag.Arming the Cupcakes Towers (Part II): Inside
cupcake_tower_sheet-01
in theGraphics/towers
folder, there are three different towers with their respective upgrading levels; however, we only used the sprinkle cupcake tower. Create...