A class in Root.Township, the global namespace.
Remaps a progress value through a curve and passes it on in an event.
Constructors
| Member | What it is |
|---|
ProgressCorrection() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private FloatEvent correctedProgressUpdate | Event that gets the remapped value. |
private AnimationCurve correctionCurve | Curve that remaps progress (linear by default). |
Methods
| Member | What it is |
|---|
void UpdateProgress(float progress) | Runs correctedProgressUpdate with the progress mapped through the curve. |