Skip to main content

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.

Constructors​

MemberWhat it is
DamagePopup()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private float minValueDamage below this releases the popup back to the pool.

Methods​

MemberWhat 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.