mirror of
https://github.com/eliasstepanik/voxel-simulation.git
synced 2026-01-10 05:18:30 +00:00
17 lines
473 B
Rust
17 lines
473 B
Rust
use bevy::a11y::AccessibilitySystem::Update;
|
|
use bevy::app::{App, Plugin, PreUpdate, Startup};
|
|
|
|
pub struct CameraPlugin;
|
|
impl Plugin for CameraPlugin {
|
|
fn build(&self, _app: &mut App) {
|
|
_app.add_systems(
|
|
Startup,
|
|
(crate::plugins::camera::systems::camera_system::setup),
|
|
);
|
|
_app.add_systems(
|
|
PreUpdate,
|
|
(crate::plugins::camera::systems::camera_system::camera_controller_system),
|
|
);
|
|
}
|
|
}
|