bevy/examples/ecs/startup_system.rs
Carter Anderson 3a6f6de277
System Inputs, Outputs, Chaining, and Registration Ergo (#876)
System Inputs, Outputs, Chaining, and Registration Ergo
2020-11-16 18:18:00 -08:00

18 lines
395 B
Rust

use bevy::prelude::*;
fn main() {
App::build()
.add_startup_system(startup_system)
.add_system(normal_system)
.run();
}
/// Startup systems are run exactly once when the app starts up.
/// They run right before "normal" systems run.
fn startup_system() {
println!("startup system ran first");
}
fn normal_system() {
println!("normal system ran second");
}