Question by
shadowpuppet · Feb 02, 2017 at 12:26 AM ·
audio.playoneshot
PlayOneShot won't stop
ok, I have looked it up and what I have seems right. This is a recurring problem in my game where the audio.PlayOneShot(keyGrab); just keeps playing
private IEnumerator DelayAfterJump4(){
yield return new WaitForSeconds(timeWhileJumping4);//key invisible
jumping4 = false;
key.SetActive (false);
audio.PlayOneShot(keyGrab);
playerInventory.hasKey = true;
keyImage.enabled = true;
}
}
Comment
There's nothing wrong with this part of code. The issue must be where you call this. If you would post it i could probably tell.
Your answer
Follow this Question
Related Questions
Why won't my second Audio Source play? 0 Answers
oneshot not working 0 Answers
audio keeps playing despite oneShot 1 Answer
play Audio Array in java 0 Answers