How To Use

// Will play sound at the Main Camera position

public static void  playSound(AudioClip clip)



// Will play sound at specified position

public static void  playSound(AudioClip clip, Vector3 pos)




// Will get sound from Resources and play it at the Main Camera position

public static void  playSound(string sound)




// Will get sound from Resources and play it at specified position

public static void  playSound(string sound, Vector3 pos)

 

SETTINGS

General settings:

You can modifay EasySoundConfig at runtime or before game start.

 

// Max pan distance of audio source

public static float  MAX_PAN_DISTANCE;



// rollof mode  of audio source

public static AudioRollofMode  ROLL_OF_MODE;