Restore original SystemSet
configuration.
This commit is contained in:
parent
96b7dcb091
commit
eb8887e1ed
|
@ -421,7 +421,8 @@ where
|
||||||
if !config.states.is_empty() {
|
if !config.states.is_empty() {
|
||||||
let states = config.states;
|
let states = config.states;
|
||||||
for state in states {
|
for state in states {
|
||||||
app.add_systems(OnExit(state), cleanup);
|
app.configure_set(Update, Exploration.run_if(in_state(state.clone())))
|
||||||
|
.add_systems(OnExit(state), cleanup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user