Skip to main content

Limit

A class in Root.Township, the global namespace.

Splits a float signal by a threshold: values above it go to one event, the rest to another.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float limitThe threshold.
private FloatEvent overInvoked with values above the limit.
private FloatEvent underInvoked with values at or below the limit.

Methods​

MemberWhat it is
void Input(float value)Invokes over when the value is above limit, otherwise under.