Skip to content

Commit c3720ca

Browse files
author
Pascal Hertleif
committed
bevy labels: Align examples
1 parent 2a4c352 commit c3720ca

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

_posts/2022-01-10-bevy-labels.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn main() {
6969
App::new()
7070
.add_plugins(MinimalPlugins)
7171
.add_startup_system(setup_world.label("world"))
72-
.add_startup_system(spawn_player.before("world"))
72+
.add_startup_system(spawn_player.after("world"))
7373
.run();
7474
}
7575

@@ -153,16 +153,16 @@ In the end we arrive at something like this:
153153

154154
```rust
155155
#[derive(Debug, Clone, PartialEq, Eq, Hash, SystemLabel)]
156-
enum System {
157-
Input,
156+
enum Setup {
157+
World,
158158
}
159159
```
160160

161161
Which we can use just like our string previously:
162162

163163
```rust
164-
.add_startup_system(mouse_input.label(System::Input))
165-
.add_startup_system(move_player.after(System::Input))
164+
.add_startup_system(setup_world.label(Setup::World))
165+
.add_startup_system(spawn_player.after(Setup::World))
166166
```
167167

168168

0 commit comments

Comments
 (0)