can use shoot pose

This commit is contained in:
2025-05-10 00:19:58 +02:00
parent 07c4c43b6c
commit 334eacfd1c
8 changed files with 48 additions and 10 deletions

View File

@@ -81,11 +81,17 @@ pub struct TriggerThrow(pub TriggerData);
pub struct TriggerMissile(pub TriggerData);
#[derive(Resource, Default)]
struct TriggerStateRes {
pub struct TriggerStateRes {
cooldown: f32,
active: bool,
}
impl TriggerStateRes {
pub fn is_active(&self) -> bool {
self.active
}
}
pub fn plugin(app: &mut App) {
app.init_resource::<TriggerStateRes>();