Skip to main content

WalkerStepping

A class in Root.Township, the global namespace.

Pauses and resumes a Walker, with a timer that unpauses it after maximumPauseDuration. No code calls it, so probably wired to animation or Unity events.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Timeline.IEntry forceUnpauseTimeline entry for the automatic unpause.
private float maximumPauseDurationSeconds before a pause ends by itself. 0 or less means no limit.
private Walker walkerThe walker to pause.

Methods​

MemberWhat it is
void Pause()Pauses the walker and, if maximumPauseDuration is above 0, schedules an automatic unpause.
void Unpause()Cancels the timer and unpauses the walker.