Reduced Sound FX

I modified the implementation slightly to only play the laser fire sound when the player fired (using useAI bool) in the shooter script and only the explosion sound fx when the player or enemy died in the health script. I found that there was a lot of audio distortion going on when there were many enemies and rapid firing.

The AudioPlayer is a very simple audio component that can be extended for simple games.

Privacy & Terms