clean up setup code

This commit is contained in:
IceSentry 2025-07-13 13:46:24 -04:00
parent c3855d30a3
commit 0c922176fe

View File

@ -44,15 +44,10 @@ fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(CustomRenderedMeshPipelinePlugin)
.add_systems(
Startup,
(setup, setup2).run_if(resource_exists::<AssetServer>),
)
.add_systems(Startup, setup)
.run();
}
fn setup2() {}
/// Spawns the objects in the scene.
fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
// Build a custom triangle mesh with colors