use beet::prelude::*;
#[rustfmt::skip]
fn main() {
let mut app = App::new();
app
.add_plugins((ControlFlowPlugin::default(), DebugFlowPlugin::default()));
let world = app.world_mut();
let state2 = world.spawn((
Name::new("state2"),
EndWith(Outcome::Pass),
)).id();
let transition = world.spawn((
Name::new("transition"),
EndWith(Outcome::Pass),
RunNext::new(state2),
)).id();
world.spawn((
Name::new("state1"),
EndWith(Outcome::Pass),
RunNext::new(transition),
)).trigger_target(GetOutcome).flush();
}