pickup hanlder
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
use asset_loading::ImageAssets;
|
||||
use bevy::{prelude::*};
|
||||
use bevy::prelude::*;
|
||||
use bevy_rapier3d::prelude::*;
|
||||
|
||||
mod asset_loading;
|
||||
mod bevy_plugin;
|
||||
mod debugging;
|
||||
mod interaction;
|
||||
mod level_instantiation;
|
||||
mod main_menu;
|
||||
mod player;
|
||||
mod util;
|
||||
mod debugging;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
@@ -22,7 +22,7 @@ fn main() {
|
||||
RapierPhysicsPlugin::<NoUserData>::default(),
|
||||
RapierDebugRenderPlugin::default(),
|
||||
player::plugin,
|
||||
debugging::plugin
|
||||
debugging::plugin,
|
||||
))
|
||||
.init_state::<GameState>()
|
||||
.add_systems(OnEnter(GameState::Playing), setup)
|
||||
@@ -44,7 +44,7 @@ fn setup(
|
||||
mut commands: Commands,
|
||||
mut meshes: ResMut<Assets<Mesh>>,
|
||||
mut materials: ResMut<Assets<StandardMaterial>>,
|
||||
image: Res<ImageAssets>
|
||||
image: Res<ImageAssets>,
|
||||
) {
|
||||
// circular base
|
||||
commands.spawn((
|
||||
|
||||
Reference in New Issue
Block a user