and the color inconsistency

bevy0.12
Elijah Voigt 2 years ago
parent 8cee0b6fb5
commit 15c7f5c0fc

@ -35,7 +35,7 @@ impl Plugin for Display2dPlugin {
set_transform
.after(game::update_board)
.run_if(any_component_changed::<BoardIndex>),
set_piece_sprite.run_if(any_component_changed::<Side>),
set_piece_sprite.run_if(any_component_changed::<Side>).after(game::set_side),
set_tile_sprite.run_if(any_component_added::<game::Tile>),
),
)

@ -35,7 +35,7 @@ impl Plugin for Display3dPlugin {
set_board_model.run_if(any_component_added::<game::BoardComponent>),
set_tile_hitbox.run_if(any_component_added::<game::Tile>),
set_piece_position.run_if(any_component_changed::<BoardIndex>),
set_piece_texture.run_if(any_component_changed::<Side>),
set_piece_texture.run_if(any_component_changed::<Side>).after(game::set_side),
select
.run_if(in_state(GameState::Play))
.run_if(in_state(DisplayState::Display3d))

@ -30,13 +30,13 @@ impl Plugin for GamePlugin {
.run_if(any_component_added::<Selected>),
),
)
// .add_systems(
// PreUpdate,
// (
// asserts::<display2d::Display2d>,
// asserts::<display3d::Display3d>,
// ),
// )
.add_systems(
PreUpdate,
(
asserts::<display2d::Display2d>,
asserts::<display3d::Display3d>,
),
)
.add_systems(
PostUpdate,
(debug_board.run_if(resource_exists::<debug::DebugEnabled>()),),

Loading…
Cancel
Save