clean up setup code
This commit is contained in:
parent
c3855d30a3
commit
0c922176fe
@ -44,15 +44,10 @@ fn main() {
|
|||||||
App::new()
|
App::new()
|
||||||
.add_plugins(DefaultPlugins)
|
.add_plugins(DefaultPlugins)
|
||||||
.add_plugins(CustomRenderedMeshPipelinePlugin)
|
.add_plugins(CustomRenderedMeshPipelinePlugin)
|
||||||
.add_systems(
|
.add_systems(Startup, setup)
|
||||||
Startup,
|
|
||||||
(setup, setup2).run_if(resource_exists::<AssetServer>),
|
|
||||||
)
|
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn setup2() {}
|
|
||||||
|
|
||||||
/// Spawns the objects in the scene.
|
/// Spawns the objects in the scene.
|
||||||
fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
|
fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
|
||||||
// Build a custom triangle mesh with colors
|
// Build a custom triangle mesh with colors
|
||||||
|
Loading…
Reference in New Issue
Block a user