How can I use player when pressing the other player should stopped the current and play the assign one

I used bottoms and set players to them, when I click a bottom I'll start sound.
My question is that how can I stop the current player when I press other bottom, because if I played two or more bottoms at the same time they all play while I want the first sound to stop as soon I press other bottom

use only one player component and set the source of the sound to play before using the Start method


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.