From dc6b419afdfc32e7bd6f185bf0751a449143ee93 Mon Sep 17 00:00:00 2001 From: yuni Date: Tue, 9 Jul 2024 04:33:31 +0200 Subject: [PATCH] cargo fmt --- src/visual.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/visual.rs b/src/visual.rs index c966385..ea5136f 100644 --- a/src/visual.rs +++ b/src/visual.rs @@ -61,7 +61,7 @@ pub struct SpawnEffectEvent { #[derive(Resource)] pub struct SuitAnimation { index: AnimationNodeIndex, - graph: Handle + graph: Handle, } pub fn setup( @@ -190,7 +190,10 @@ fn play_animations( transitions .play(&mut player, suit_animation.index, Duration::ZERO) .repeat(); - commands.entity(entity).insert(suit_animation.graph.clone()).insert(transitions); + commands + .entity(entity) + .insert(suit_animation.graph.clone()) + .insert(transitions); //player.play(suit_ani_node_index.0).repeat(); } }