From the last section, we have the setup for the Aiming button to stop our character's movement as well as control the animation of our character by using
. In this section, we will add the aiming animation, shot animation, scope target UI, rocket launcher script, and rocket launcher object.
We will start with creating a rocket launcher and adding the
New3PSController script to it. Then, our character will be able to shoot the rocket:
RocketLauncher, and then we drag this object inside the Main Camera object in the Hierarchy view as shown in the following screenshot: