I’m trying to make two audioclips cut each other off. For example, if sound1 is in the middle of playing and then sound2 starts, I want sound2 to cutoff sound1.
source.PlayOneShot(sound1);
//do some other stuff
source.PlayOneShot(sound2);
where source is an audiosource and sound1 and sound2 are audioclips. For me, this results in the audioclips just overlapping. How do you make them cut eachother off??