Setup basic resources

This commit is contained in:
2021-07-12 23:01:35 -05:00
parent bc5eb9b006
commit 3fe46fd116
5 changed files with 16 additions and 6 deletions

View File

@ -4,7 +4,8 @@ pub struct PlayerPlugin;
impl Plugin for PlayerPlugin {
fn build(&self, app: &mut AppBuilder) {
app.add_startup_system(add_player.system())
app.insert_resource(GreetTimer(Timer::from_seconds(2.0, true)))
.add_startup_system(add_player.system())
.add_system(greet_player.system());
}
}