Hello, I want to know how to stop an audio clip that I have played from the code ‘audio.playOneShot’. In my project I want to press a key and play an audio file (without making lots of audio sources) and if I press the same key again while the audio clip is playing then stop the audio clip and play it again at the same time.
Can anyone help please?
Anything helpful is really appreciated.