I’m attempting to play an sfx when participant faucet the display, quickly. SO, it’s not a single faucet, however quite a lot of faucets briefly moments.
I’ve tried these:
this.node.on( Node.EventType.TOUCH_START, (occasion) => {
....
HAND.getComponent(AudioSource).play();
},this);
this.node.on( Node.EventType.TOUCH_END, (occasion) => {
....
HAND.getComponent(AudioSource).play();
},this);
However each doesn’t work as what I wished. I want the SFX all the time play on every faucet no matter whether or not the earlier play session already completed or not.
My sport will runs on Android gadgets.
Anybody may give me suggestion on find out how to do it?