Components

These are the components you add in the inspector. Each one does one job, and you combine them on your objects.

🧱 Core

ComponentWhat it does
HealthHolds health, takes damage and heals, raises change and death events
HitboxConnects a collider to a Health, with a damage multiplier

🛡️ Health Modifiers

ComponentWhat it does
InvincibilityBlocks all damage while enabled

🤝 Interactions

ComponentWhat it does
Contact DamageHurts any hitbox that enters its trigger
PickupsBase for items collected on touch

✨ Feedback

ComponentWhat it does
HitpointFloating damage numbers and text
EffectsSoundGenerator, SpawnableEffect and DeathEffect helpers

🔗 How They Fit Together

  flowchart LR
    A["Attack"] --> B["Hitbox"] --> C["Health"]
    D["Modifiers"] -.-> C
    C --> E["Events: UI, effects"]