Hey guys i need help im about to cry
I want to create some sort of oneshot trigger audio for when a player touches the botton. This is the way it works untill now: in the gameObject/buttom, i add a component botton and a fmod event component emitter and drag the same gameObject with the fmod component and choose play in the on click section, this method works for almost every other botton in the scene but there are some buttons who dont.
so idk how but i created a script and i was capable of choose a event in the inspector and when i attached it in the gameObject it starts to play everytime cause i put the function on the Update() cell… the question here is how i can being able of make a script to when players actually press the gameObject/button and not reproduce the sound when the gameObject is enabled on the scene??? ill leave my script to u guys check it out.
i hope u guys understand English is not my first languge so i have a litte bit of problems when i do grammar