rename
This commit is contained in:
@@ -15,8 +15,8 @@ pub struct AudioAssets {
|
|||||||
pub key_collect: Handle<AudioSource>,
|
pub key_collect: Handle<AudioSource>,
|
||||||
#[asset(path = "sfx/effects/gate.ogg")]
|
#[asset(path = "sfx/effects/gate.ogg")]
|
||||||
pub gate: Handle<AudioSource>,
|
pub gate: Handle<AudioSource>,
|
||||||
#[asset(path = "sfx/effects/cash.ogg")]
|
#[asset(path = "sfx/effects/cash_collect.ogg")]
|
||||||
pub cash: Handle<AudioSource>,
|
pub cash_collect: Handle<AudioSource>,
|
||||||
#[asset(path = "sfx/ui/selection.ogg")]
|
#[asset(path = "sfx/ui/selection.ogg")]
|
||||||
pub selection: Handle<AudioSource>,
|
pub selection: Handle<AudioSource>,
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ fn on_spawn_sounds(
|
|||||||
PlaySound::Gun => assets.gun.clone(),
|
PlaySound::Gun => assets.gun.clone(),
|
||||||
PlaySound::Crossbow => assets.crossbow.clone(),
|
PlaySound::Crossbow => assets.crossbow.clone(),
|
||||||
PlaySound::Gate => assets.gate.clone(),
|
PlaySound::Gate => assets.gate.clone(),
|
||||||
PlaySound::CashCollect => assets.cash.clone(),
|
PlaySound::CashCollect => assets.cash_collect.clone(),
|
||||||
PlaySound::Selection => assets.selection.clone(),
|
PlaySound::Selection => assets.selection.clone(),
|
||||||
PlaySound::Throw => assets.throw.clone(),
|
PlaySound::Throw => assets.throw.clone(),
|
||||||
PlaySound::ThrowHit => assets.throw_explosion.clone(),
|
PlaySound::ThrowHit => assets.throw_explosion.clone(),
|
||||||
|
|||||||
Reference in New Issue
Block a user