cargo fmt

This commit is contained in:
yuni 2024-07-09 04:33:31 +02:00
parent d262796db0
commit dc6b419afd

View file

@ -61,7 +61,7 @@ pub struct SpawnEffectEvent {
#[derive(Resource)] #[derive(Resource)]
pub struct SuitAnimation { pub struct SuitAnimation {
index: AnimationNodeIndex, index: AnimationNodeIndex,
graph: Handle<AnimationGraph> graph: Handle<AnimationGraph>,
} }
pub fn setup( pub fn setup(
@ -190,7 +190,10 @@ fn play_animations(
transitions transitions
.play(&mut player, suit_animation.index, Duration::ZERO) .play(&mut player, suit_animation.index, Duration::ZERO)
.repeat(); .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(); //player.play(suit_ani_node_index.0).repeat();
} }
} }