use bevy::prelude::*; use bevy_sprite3d::Sprite3d; #[derive(Component, Reflect, Deref, DerefMut)] #[reflect(Component)] pub struct AnimationTimer(Timer); impl AnimationTimer { pub fn new(t: Timer) -> Self { Self(t) } } pub fn plugin(app: &mut App) { app.add_systems(Update, animate_sprite); } fn animate_sprite( mut commands: Commands, time: Res