mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-03 10:37:39 +00:00
switch to bevy-third-person-camera
for orbit cam
This commit is contained in:
parent
f518a2c670
commit
2e7de9f296
6 changed files with 1075 additions and 100 deletions
|
@ -13,11 +13,11 @@ mod scene;
|
|||
struct GameplaySet;
|
||||
|
||||
pub fn plugin(app: &mut App) {
|
||||
app.add_plugins(camera::plugin)
|
||||
.add_systems(OnEnter(AppState::Ingame), scene::setup.in_set(GameplaySet))
|
||||
app.add_systems(OnEnter(AppState::Ingame), scene::setup.in_set(GameplaySet))
|
||||
.add_systems(
|
||||
OnExit(AppState::Ingame),
|
||||
despawn::<cleanup::Scene>.in_set(GameplaySet),
|
||||
);
|
||||
)
|
||||
.add_plugins(camera::plugin);
|
||||
app.configure_sets(Update, GameplaySet.run_if(in_state(AppState::Ingame)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue