Skip to content

Commit

Permalink
Merge pull request #75 from BUGO07/patch-1
Browse files Browse the repository at this point in the history
fix ambiguous AudioSource usage with the "kira" feature
  • Loading branch information
IDEDARY authored Sep 10, 2024
2 parents 5ed60d8 + a54f365 commit d36f74c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_lunex/src/logic/states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ struct UiSoundChannel;
#[cfg(feature = "kira")]
#[derive(Component, Debug, Clone, PartialEq, Eq)]
pub struct OnHoverPlaySound {
pub sound: Handle<AudioSource>,
pub sound: Handle<bevy_kira_audio::AudioSource>,
}
#[cfg(feature = "kira")]
impl OnHoverPlaySound {
/// Specify the entity you want to create events for.
pub fn new(sound: Handle<AudioSource>) -> Self {
pub fn new(sound: Handle<bevy_kira_audio::AudioSource>) -> Self {
OnHoverPlaySound {
sound,
}
Expand Down Expand Up @@ -252,4 +252,4 @@ impl Plugin for DefaultStatesPlugin {
.add_systems(Update, hover_enter_system.run_if(on_event::<Pointer<Over>>()))
.add_systems(Update, hover_leave_system.run_if(on_event::<Pointer<Out>>()));
}
}
}

0 comments on commit d36f74c

Please sign in to comment.