sound effects of reloading

This commit is contained in:
2025-04-02 02:22:12 +08:00
parent 01f8128e5f
commit f967b1b0da
6 changed files with 13 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ use crate::{
heads::ActiveHeads,
npc::Hit,
player::{Player, PlayerRig},
sounds::PlaySound,
tb_entities::EnemySpawn,
};
use avian3d::prelude::*;
@@ -90,7 +91,7 @@ fn on_trigger_state(
};
if !state.has_ammo() {
//TOOD: play sound
commands.trigger(PlaySound::Invalid);
return;
}