main menu
This commit is contained in:
19
src/level_instantiation/mod.rs
Normal file
19
src/level_instantiation/mod.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::{asset_loading::GltfAssets, GameState};
|
||||
|
||||
pub fn map_plugin(app: &mut App) {
|
||||
// app.add_systems(OnEnter(GameState::Playing), spawn_level);
|
||||
}
|
||||
|
||||
fn spawn_level(
|
||||
mut commands: Commands,
|
||||
models: Res<Assets<Gltf>>,
|
||||
gltf_assets: Res<GltfAssets>) {
|
||||
let gltf = models.get(&gltf_assets.wall).unwrap();
|
||||
|
||||
// commands.spawn(SceneBundle {
|
||||
// scene: gltf.scenes[0].clone(),
|
||||
// ..default()
|
||||
// });
|
||||
}
|
||||
Reference in New Issue
Block a user