Skip to main content

HealthChannel

A class in Root.Township, the global namespace.

Impact asset that sets how much damage a channel deals to health, or whether it kills in one hit.

Constructors​

MemberWhat it is
HealthChannel()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private bool isOneHitBacking field for IsOneHit.
private float multiplierBacking field for Multiplier.

Properties​

MemberWhat it is
bool IsOneHit { get; }True if a hit on this channel destroys the target in one go.
float Multiplier { get; }Damage multiplier for this channel.