Used Input.GetKeyDown and Input.GetKeyUp

Hello guys,
As the title said, I’m using Input.GetKeyDown & Input.GetKeyUp, so my code looks a bit different from the instructor’s, but it seems to work just as well.
image
Just in case anyone was wondering…

5 Likes

If it works than keep it. There are multiple ways to code something together.

I really like your solution and it helped me. Mine worked ie the sound was coming on and off at the right spots but for some reason it was sounding glitchy. Now it works correctly. Nice simple elegant solution. Well done!

Privacy & Terms