fix(game): initialize AiConfig resource in AiPlugin

Register AiConfig alongside AiStateMachine so the resource is available before
the perception/state-transition systems read it.
This commit is contained in:
2026-06-16 15:44:37 -04:00
parent 97a9f611bb
commit aee13cb81a

View File

@@ -35,7 +35,8 @@ pub struct AiPlugin;
impl Plugin for AiPlugin {
fn build(&self, app: &mut App) {
app.init_resource::<AiStateMachine>()
app.init_resource::<AiConfig>()
.init_resource::<AiStateMachine>()
.add_event::<PerceptionEvent>()
.add_event::<StateTransition>()
// AI spawning systems - run when entering in-game state