From a54f3659c9fa38ed11ffcb2d7250e0e1447945f3 Mon Sep 17 00:00:00 2001 From: BUGO07 Date: Mon, 9 Sep 2024 15:21:31 +0400 Subject: [PATCH] fix ambiguous AudioSource usage with the "kira" feature there can still be few changes done such as removing the bevy_kira_audio import altogether but this is the bare minimum to fix the error caused when using the "kira" feature --- crates/bevy_lunex/src/logic/states.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_lunex/src/logic/states.rs b/crates/bevy_lunex/src/logic/states.rs index a1a4413..f525493 100644 --- a/crates/bevy_lunex/src/logic/states.rs +++ b/crates/bevy_lunex/src/logic/states.rs @@ -170,12 +170,12 @@ struct UiSoundChannel; #[cfg(feature = "kira")] #[derive(Component, Debug, Clone, PartialEq, Eq)] pub struct OnHoverPlaySound { - pub sound: Handle, + pub sound: Handle, } #[cfg(feature = "kira")] impl OnHoverPlaySound { /// Specify the entity you want to create events for. - pub fn new(sound: Handle) -> Self { + pub fn new(sound: Handle) -> Self { OnHoverPlaySound { sound, } @@ -252,4 +252,4 @@ impl Plugin for DefaultStatesPlugin { .add_systems(Update, hover_enter_system.run_if(on_event::>())) .add_systems(Update, hover_leave_system.run_if(on_event::>())); } -} \ No newline at end of file +}