units wip

This commit is contained in:
2024-08-27 23:04:03 -04:00
parent 25b6ad1099
commit 77fa421bb2
18 changed files with 210 additions and 7 deletions

View File

@@ -84,9 +84,7 @@ impl Plugin for MapInitPlugin {
app.add_systems(Update, despawn_map.run_if(in_state(GeneratorState::Regenerate)));
app.add_systems(
Update,
spawn_map
.run_if(in_state(AssetLoadState::LoadComplete))
.run_if(in_state(GeneratorState::SpawnMap)),
spawn_map.run_if(in_state(AssetLoadState::LoadComplete).and_then(in_state(GeneratorState::SpawnMap))),
);
app.insert_resource(TileManager::default());