Esempio n. 1
0
 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();
 }
Esempio n. 3
0
 void Start()
 {
     source = NAudio.CreateSource(transform, clip);
     source.Play();
 }