void CreateSources() { for (int i = 0; i < numberOfSources; i++) { AudioClip randomClip = clips[Random.Range(0, clips.Length)]; var source = NAudio.CreateSource(null, randomClip); source.transform.position = Random.insideUnitSphere * range; source.PlayRandomTime(); } }
void Start() { NAudio.CreateSource(transform, clip).Play(); }
void Start() { source = NAudio.CreateSource(transform, clip); source.Play(); }