Skip to main content

ProgressCorrection

A class in Root.Township, the global namespace.

Remaps a progress value through a curve and passes it on in an event.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private FloatEvent correctedProgressUpdateEvent that gets the remapped value.
private AnimationCurve correctionCurveCurve that remaps progress (linear by default).

Methods​

MemberWhat it is
void UpdateProgress(float progress)Runs correctedProgressUpdate with the progress mapped through the curve.