Unity Playground comes with a nice example game called Defender. The player controls a turret on the ground and uses it defend the base from asteroids that fall from the sky.
In this video we will create the projectile prefab and add the scripts to our turret to handle the shooting.