WIP: Porting the server to Bevy #31

Closed
Schmarni-Dev wants to merge 46 commits from bevy_2 into dev
Showing only changes of commit 7f78f6f1a8 - Show all commits

View File

@@ -85,6 +85,9 @@ impl SoundAspect for Sound {
}
impl Drop for Sound {
fn drop(&mut self) {
if let Some(instance) = self.instance.lock().take() {
instance.stop();
}
if let Some(sk_sound) = self.sk_sound.take() {
destroy_queue::add(sk_sound);
}