I am currently making a horror game, and I need sounds to play once, and then destroy, I asked this earlier, but I couldnt find the thread, this is my script
function OnTriggerEnter(other: Collider){
if (!audio.isPlaying){
audio.Play();
Destroy.audio();
}
}
I did not make this script.
If this script is not right, please reply with a solution :)
↧