diff --git a/src/sound/footstep.rs b/src/sound/footstep.rs index 5f50519..1301b07 100644 --- a/src/sound/footstep.rs +++ b/src/sound/footstep.rs @@ -1,14 +1,14 @@ use std::collections::HashMap; use bevy::{prelude::*, transform::TransformSystem}; -use bevy_synthizer::{Audio, Sound}; -use rand::random; +use bevy_synthizer::{Audio, Buffer, Sound}; +use rand::prelude::*; use crate::core::PointLike; #[derive(Component, Clone, Debug)] pub struct Footstep { - pub audio: Audio, + pub audio: Option