feat: close popups with escape key
This commit is contained in:
@@ -18,5 +18,9 @@ impl Plugin for PomUiPlugin {
|
||||
Update,
|
||||
context_menu::buttons.run_if(in_state(AppState::GameScreen)),
|
||||
);
|
||||
app.add_systems(
|
||||
Update,
|
||||
context_menu::close_context_menu.run_if(in_state(AppState::GameScreen)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user