Hello everyone! I recently got Unity 3.5 and I’m having an error everytime I try to play an AudioSource. The sound is a 2D sound and is in a prefab. Upon activating the sound I get the error(warning); “Can not play a disabled audio source”. However the sound still plays perfectly. Any ideas? Can I disable the warning?
EDIT: Here’s the snip’it of code with the audio
if(!reloading && Input.GetButtonDown("Reload") && currentClip < clipSize && currentExtraAmmo > 0) {
reloading = true;
gunAnimation.CrossFade("reload");
reloadSound.Play();
}
if(!reloading && Input.GetButtonDown("Fire1") && currentClip == 0 && currentExtraAmmo > 0) {
reloading = true;
gunAnimation.CrossFade("reload");
reloadSound.Play();
}
Thanks!