Game Development Reference
In-Depth Information
Listing 85: Simple script that bridges between RaycastShooter and GeneralWeapon
Obviously, the script depends on both RaycastShooter and GeneralWeapon , which makes
sense as its job
is
to
link
these
scripts
together.
Illustration
91
shows
different
RaycastShooter configurations we need to set for both rifle and sniper.
Illustration 91: Different configurations of RaycastShooter for rifle (left) and sniper (right)
Search WWH ::




Custom Search