12 lines
306 B
Rust
12 lines
306 B
Rust
use crate::prelude::*;
|
|
|
|
pub struct PlayerPlugin;
|
|
|
|
impl Plugin for PlayerPlugin {
|
|
fn build(&self, app: &mut AppBuilder) {
|
|
app.insert_resource(GreetTimer(Timer::from_seconds(2.0, true)))
|
|
.add_startup_system(add_player.system())
|
|
.add_system(greet_player.system());
|
|
}
|
|
}
|