Game Development Reference
In-Depth Information
We can also see the syntax for each language in the Unity scriping document, as shown in
the following screenshot:
You can also buy the JavaScript to C# converter package or C# to Javascript converter
package there.
Creating the rocket launcher and
scope target
From the last secion, we have the setup for the Aiming buton to stop our character's
movement as well as control the animaion of our character by using crossFade() . In this
secion, we will add the aiming animaion, shot animaion, scope target UI, rocket launcher
script, and rocket launcher object.
Engage Thrusters
We will start with creaing a rocket launcher and adding the New3PSController script to it.
Then, our character will be able to shoot the rocket:
1. Go to Unity editor, GameObject | Create Empty , and name the object
RocketLauncher , and then we drag this object inside the Main Camera object in
the Hierarchy view as shown in the following screenshot:
 
Search WWH ::




Custom Search