- Home /
Question by
Tyler Starr · Feb 21, 2011 at 01:48 AM ·
audioclip
Play Audio Only One at a time?
I have this script:
var audioo : AudioClip;
function Update() {
if (iPhoneInput.acceleration.magnitude > 2f){
audio.PlayOneShot(audioo);
}
}
When i swing my iphone the audio plays 10 times. How can i make it to where audio can only play if last audioclip is finished playing?
Comment
Your answer
Follow this Question
Related Questions
Audio Clip Plays 1 turn too late 1 Answer
Audio Help! 1 Answer
help sound on collision when key down 2 Answers
Audio script doesn't work 1 Answer
Playing a different audio clip after another has finished 1 Answer