Game Development Reference
In-Depth Information
6.
Set the Speed parameter on the bench to about 3 to ensure that the bench
won't get stuck on the walkway.
7.
Click Play, and watch as the doors open to let the bench through and close
after it leaves.
Adding Audio
If you are a Star Trek fan, you are probably thinking that the animation needs a nice sound effect
to top it off. Playing an audio clip is similar to playing an animation clip, and an audio clip usually
accompanies an animation.
1.
Select the GardenGates object, and add an Audio Source component to it
from the Component, Audio menu (Figure 6-7 ).
Figure 6-7. The new Audio component
 
Search WWH ::




Custom Search