My Forum - your board description
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Forum Index
Profile for :: lomichaka1973
Avatar All about lomichaka1973
Ranking:
Registration date:  21/08/2024 22:14:54
Number of messages posted:  No posted messages available
Created topics: No topic created
Website:  http://falloutmagnifico.com/
Biography: To play sounds through one of these groups, we simply create Audio Sources with the Output field configured to the right AudioMixer group. In the Player script, add a private variable of type AudioClip named “_laserClip” with a null value this is a reference for the sound effect that will play. Then create a private variable of type AudioSource named “_source” with a null value this is a reference to the Audio Source component on the Player that is told to play the laser sound. Again this way we can easily add a new tilemap and if we put on it the StepSoundData script and assign to it the AudioClips the previously written system will work with it. It’s much better than having “if-else if” block where you check for each type of terrain to select the specific AudioClip for it.
Contact lomichaka1973
Private Message:
Powered by JForum 2.1.8 © JForum Team