Very STrange problem
now am having a really strange problem in my reload function i play an audio clip and it was working but when i added an animation to get played it doesn't work it gives me such a strange sound when i reload but the animation work properly here is my reload function
function Reload(){
if(magsLeft > 0){
reloading = true;
GetComponent.<AudioSource>().PlayOneShot(reloadSound);
GetComponent.<Animation>().Play("Reload");
bulletsInMag = 60;
magsLeft = magsLeft-1;
yield WaitForSeconds(5.0);
reloading = false;
}
}
guys please fast i need a respond please ad$$anonymous$$
Answer by mohaaaaamed · Feb 03, 2016 at 03:04 PM
solved the strange audio was the sound getting repeated every time Update is called so i just replaced audio clip by an audio source
Your answer
Follow this Question
Related Questions
Trouble with syncing 2D animationClip and AudioClip on Opening Animation 0 Answers
How to hear audio in an animation while previewing,How to hear audio while previewing animations 0 Answers
Help with script for Main Menu? 1 Answer
Very low FPS because of AudioManager 1 Answer
Audio event in an animation decrease its volume and stopped 0 Answers