Components
These are the components you add in the inspector. Each one does one job, and you combine them on your objects.
| Component | What it does |
|---|
| Health | Holds health, takes damage and heals, raises change and death events |
| Hitbox | Connects a collider to a Health, with a damage multiplier |
| Component | What it does |
|---|
| Invincibility | Blocks all damage while enabled |
| Component | What it does |
|---|
| Contact Damage | Hurts any hitbox that enters its trigger |
| Pickups | Base for items collected on touch |
| Component | What it does |
|---|
| Hitpoint | Floating damage numbers and text |
| Effects | SoundGenerator, SpawnableEffect and DeathEffect helpers |
🔗 How They Fit Together
flowchart LR
A["Attack"] --> B["Hitbox"] --> C["Health"]
D["Modifiers"] -.-> C
C --> E["Events: UI, effects"]