Platform material & filter bundle
This commit is contained in:
parent
12e58b3fc0
commit
297811e882
6 changed files with 93 additions and 21 deletions
|
|
@ -36,6 +36,7 @@ pub fn despawn_level(mut commands: Commands, level_query: Query<Entity, With<Lev
|
|||
pub fn post_setup_level(
|
||||
mut commands: Commands,
|
||||
character_meshes: Res<CharacterMeshes>,
|
||||
mut meshes: ResMut<Assets<Mesh>>,
|
||||
mut materials: ResMut<Assets<ColorMaterial>>,
|
||||
current_level: Res<CurrentLevel>,
|
||||
mut level_startup_event: EventReader<LevelStartupEvent>,
|
||||
|
|
@ -47,12 +48,14 @@ pub fn post_setup_level(
|
|||
match level_id.0 {
|
||||
0 => level0::setup(
|
||||
&mut commands,
|
||||
&mut meshes,
|
||||
&character_meshes,
|
||||
&mut materials,
|
||||
&audio,
|
||||
),
|
||||
1 => level1::setup(
|
||||
&mut commands,
|
||||
&mut meshes,
|
||||
&character_meshes,
|
||||
&mut materials,
|
||||
&audio,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue