Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Trying to play sound when key is pressed

$
0
0
Im trying to play sneakSound when space bar is pressed, which it is but its keeps playing every frame, I've tried Input.GetKeyDown, but then the color change that happens only shows for one frame and it needs to be active when space bar is held down. Here is the Code

Viewing all articles
Browse latest Browse all 171066


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>