Is there any way to create sound where particles of Particle System collides? Well, when a single particle comes into contact with the environment, it will be destroyed and a new one appears that should play the sound.
I create such a script responsible for playing audio - it is pinned to the ‘Spark’ object:
public int lastParticleCount = 0;
// Use this for initialization
void Update()
{
int newParticleCount = this.GetComponent<ParticleSystem>().particleCount;
if (newParticleCount > lastParticleCount) {
this.GetComponent<AudioSource>().PlayOneShot(GameObject.Find("Player").GetComponent<SoundManager>().sfxEmit[Random.Range(0, GameObject.Find("Player").GetComponent<SoundManager>().sfxEmit.Length - 1)]);
}
lastParticleCount = this.GetComponent<ParticleSystem>().particleCount;
}