removed Trigger PlayerDistance (tracked the distance between the player and the gameobject and plays sound if player is in range) -> now by default
changed used partial blend from 2D to 3D sound
introduces local and global sound (adjustable by variable playSoundGlobal; local = sound is audible in range from 0 to 15 units, global = sound is audible in a range from 0 to 5000
volume scales depending on the distance between the audio listener of the player and the gameobject with the script
general refactoring for better understanding
Note: The volumes of all sounds are quite good balanced to each other. If your sound is still to quiet/loud, try to change the volume settings of your system before :)
For mor information check the documentation from unity.
General update of the script SoundManager.cs:
Note: The volumes of all sounds are quite good balanced to each other. If your sound is still to quiet/loud, try to change the volume settings of your system before :) For mor information check the documentation from unity.