[ad_1]
I’m attempting to play an sfx when participant faucet the display, quickly. SO, it’s not a single faucet, however plenty 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);
But each doesn’t work as what I needed. I want the SFX at all times play on every faucet no matter whether or not the earlier play session already completed or not.
My recreation will runs on Android units.
Anyone may give me suggestion on the right way to do it?
[ad_2]