DamagePopup
A class in Root.Township, Alta.Utilities.
The pooled floating text that shows damage numbers, scaled and rounded by the PickupTypeSettings popup multiplier and precision.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
TextPopup - Documented in Items, interaction and damage
Constructors
| Member | What it is |
|---|---|
DamagePopup() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
void UpdateValue(float damage, ImpactChannel impactChannel) | Shows a damage number in the channel's (or a given) colour, or "base + extra" when there's extra damage. Releases the popup below minValue. |
void UpdateValue(float baseDamage, float additionalDamage, ImpactChannel impactChannel) | Shows a damage number in the channel's (or a given) colour, or "base + extra" when there's extra damage. Releases the popup below minValue. |
void UpdateValue(float damage, Color color) | Shows a damage number in the channel's (or a given) colour, or "base + extra" when there's extra damage. Releases the popup below minValue. |