fix all polyframe update now
This commit is contained in:
@@ -139,7 +139,7 @@ impl MyApp {
|
||||
Ok(j) => {
|
||||
let decoded: Music = serde_json::from_str(&j).unwrap();
|
||||
self.music = decoded;
|
||||
self.music.update_frame(self.current_delta);
|
||||
self.music.update_frame();
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("Error, no saves with this name to load, {e} ");
|
||||
|
||||
@@ -59,8 +59,10 @@ impl Music {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_frame(&mut self, delta: f32) {
|
||||
self.find_poly_frame(delta).update();
|
||||
pub fn update_frame(&mut self) {
|
||||
for (_, p) in &mut self.poly_frame {
|
||||
p.update();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn fix_teta(&mut self, delta: f32) {
|
||||
|
||||
Reference in New Issue
Block a user