Readd action set sync SystemSet

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-06-10 11:55:10 +02:00
parent 5ce78dace9
commit 3109618bb7

View File

@@ -2,12 +2,15 @@ use crate::session::OxrSession;
use bevy::prelude::*; use bevy::prelude::*;
use bevy_xr::session::session_running; use bevy_xr::session::session_running;
#[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone, Copy)]
pub struct ActionSetSyncSet;
impl Plugin for OxrActionSyncingPlugin { impl Plugin for OxrActionSyncingPlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.add_event::<OxrSyncActionSet>(); app.add_event::<OxrSyncActionSet>();
app.add_systems( app.add_systems(
PreUpdate, PreUpdate,
sync_sets.run_if(session_running), // .in_set(OxrPreUpdateSet::SyncActions), sync_sets.in_set(ActionSetSyncSet).run_if(session_running), // .in_set(OxrPreUpdateSet::SyncActions),
); );
} }
} }