private void FinishSoundPlayer(SoundPlayer soundPlayer) { SoundPlayers.Remove(soundPlayer.gameObject); Destroy(soundPlayer.gameObject); soundPlayer.soundNode.Done(); }
void soundPlayer_DonePlaying(SoundPlayer soundPlayer) { FinishSoundPlayer(soundPlayer); }