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
| Member | What it is |
|---|
Limit() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private float limit | The threshold. |
private FloatEvent over | Invoked with values above the limit. |
private FloatEvent under | Invoked with values at or below the limit. |
Methods
| Member | What it is |
|---|
void Input(float value) | Invokes over when the value is above limit, otherwise under. |