Replicate Sounds (#68)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use crate::{
|
||||
cash::Cash, loading_assets::GameAssets, physics_layers::GameLayer, protocol::TbMapIdCounter,
|
||||
utils::global_observer,
|
||||
};
|
||||
use avian3d::prelude::*;
|
||||
use bevy::{
|
||||
@@ -206,10 +207,10 @@ pub fn plugin(app: &mut App) {
|
||||
app.register_type::<CashSpawn>();
|
||||
app.register_type::<SecretHead>();
|
||||
|
||||
app.add_observer(tb_component_setup::<CashSpawn>);
|
||||
app.add_observer(tb_component_setup::<Platform>);
|
||||
app.add_observer(tb_component_setup::<PlatformTarget>);
|
||||
app.add_observer(tb_component_setup::<Movable>);
|
||||
global_observer!(app, tb_component_setup::<CashSpawn>);
|
||||
global_observer!(app, tb_component_setup::<Platform>);
|
||||
global_observer!(app, tb_component_setup::<PlatformTarget>);
|
||||
global_observer!(app, tb_component_setup::<Movable>);
|
||||
}
|
||||
|
||||
fn tb_component_setup<C: Component>(trigger: Trigger<OnAdd, C>, world: &mut World) {
|
||||
|
||||
Reference in New Issue
Block a user