Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Bevy 0.10 #228

Merged
merged 13 commits into from
Mar 14, 2023
Prev Previous commit
Next Next commit
Use new syntax for startup systems
janhohenheim committed Mar 14, 2023

Unverified

This user has not yet uploaded their public signing key.
commit b0d58ff5883b286957a14858c58483883fa38ac0
2 changes: 1 addition & 1 deletion src/bevy_config.rs
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ impl Plugin for BevyConfigPlugin {
app.insert_resource(Msaa::Sample4)
.insert_resource(ClearColor(Color::rgb(0.4, 0.4, 0.4)))
.add_plugins(default_plugins)
.add_startup_system(set_window_icon.pipe(log_errors));
.add_system(set_window_icon.pipe(log_errors).on_startup());
}
}

2 changes: 1 addition & 1 deletion src/player_control/camera.rs
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ impl Plugin for CameraPlugin {
.register_type::<FirstPersonCamera>()
.register_type::<FixedAngleCamera>()
.init_resource::<ForceCursorGrabMode>()
.add_startup_system(spawn_ui_camera)
.add_system(spawn_ui_camera.on_startup())
.add_system(despawn_ui_camera.in_schedule(OnEnter(GameState::Playing)))
.add_systems(
(