- Home /
particles and sound not playing with event trigger
Hey guys I have this ship that works fine when Im using normal input (Input.GetKey(KeyCode.Space) the first good looking particles and sound. but when I want to use mobile input (button with even trigger) they fire very weirdly with no sound.
check video for better understanding.
at the start of the video particles and sound works well
and at 0:10 when I press the button they are pulsing and not constant
does anyone know what is the cause of this?
onPressDown just changes thrustIsPressed to true and on UP to false
Answer by stalwart5033 · May 09 at 11:31 PM
Are you using these spacebar pressing and not pressing functions together with the above condition? stopThrusting works whenever space is not pressed, the sound may be constantly returning. I don't know if you put it like this just to show the codes.