Question by 
               elvisriggo · May 16, 2016 at 10:10 AM · 
                arrayaudioaudiosourceaudioplayaudio.playoneshot  
              
 
              play Audio Array in java
Hey, I'm trying to make an array with Audios an then play it, but it doesnt't work. I've got this
 var list : AudioClip[];
 
 function Start () {
        list[0] = Resources.Load("Sound/Text1");
        audio.PlayOneShot(list[i]);
 }
I initialized the array before load the sound, of course. In the 4th line (audio.play...), building, it told to me: Use GetComponent "AudioSource" (); The problem is that i dont know how to use it. Can you Help me? ;)
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
play sound when two non player objects collide 0 Answers
Trying to use audio causes errors when trying to use in an 'if' statement 1 Answer
Delaying Audio with PlayedDelayed not working 1 Answer
Can not play a disabled audio source, but the source is definitely not disabled! 0 Answers
Audio coming through iPhone earpiece 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                