Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldom-SE committed Dec 28, 2024
1 parent c36fc7e commit 768a4c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/chase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use seldom_state::prelude::*;

fn main() {
App::new()
.add_plugins((DefaultPlugins, StateMachinePlugin))
.add_plugins((DefaultPlugins, StateMachinePlugin::default()))
// This plugin is required for `seldom_state`
.add_systems(Startup, init)
.add_systems(Update, (follow, move_player))
Expand Down
2 changes: 1 addition & 1 deletion examples/done.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use seldom_state::prelude::*;

fn main() {
App::new()
.add_plugins((DefaultPlugins, StateMachinePlugin))
.add_plugins((DefaultPlugins, StateMachinePlugin::default()))
.init_resource::<CursorPosition>()
.add_systems(Startup, init)
.add_systems(Update, (update_cursor_position, go_to_target))
Expand Down
2 changes: 1 addition & 1 deletion examples/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn main() {
.add_plugins((
DefaultPlugins,
InputManagerPlugin::<Action>::default(),
StateMachinePlugin,
StateMachinePlugin::default(),
))
.add_systems(Startup, init)
.add_systems(Update, (walk, fall))
Expand Down

0 comments on commit 768a4c8

Please sign in to comment.