I Need help with an script in an audio of me. When im touching the brick the audio will play but i need to insert a line of script so that when i have touched the brick the sound cant be player again. :
Debug.Log(“The trigger fired”);
This is JS.
Where do i put the line of script so that when i touch it it cant be played again.
MORE INFO ( If necesarry ) :
Its a gameobject
Its a audio source
I did the script in JS