1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use bevy::prelude::*; use bevy_fnplugins::FnPluginsExt; fn main() { App::new() .add_plugins(DefaultPlugins) .fn_plugins((health_plugin, damage_plugin)) .run(); } fn health_plugin(_app: &mut App) { // Code ... } fn damage_plugin(_app: &mut App) { // Code ... }