In this recipe, you created a blue sphere as a prefab (containing a RigidBody). You then created a scaled and rotated cube for the projectile launcher called Cube-launcher and then made this object a child of Cube-player.
A common issue is for projectiles to collide with their launcher object, so for this reason, we disabled the Box Collider component of the Cube-launcher GameObject. An alternative solution would be to create separate layers and remove the physics interaction between the layer of the launcher object and the layer of the projectiles.
The FireProjectile script class contains a constant called FIRE_DELAY – this is the minimum time between firing new projectiles, set to 0.25 seconds. There is also a second constant called PROJECTILE_LIFE – this is how long each projectile will "live" until it is automatically destroyed; otherwise, the scene and memory would fill up quickly...