AudioClip Array

How do you play sound from AudioClip array?

ex: var theClip : AudioClip[];

I passed 2 files here when attached this script to the camera. How do i do audio.Play(); but just theClip[1]?

1 Answer

1

This should do it:

audio.clip = theClip[1];
audio.Play();