Skip to main content

ActiveSchmeecheeFlip

A class in Root.Township, Alta.Intelligence.

Schmeechee action that flips it back over when upside down: a pop animation, then an impulse and spin.

Constructors​

MemberWhat it is
ActiveSchmeecheeFlip()Creates an ActiveSchmeecheeFlip with default values.

Fields​

2 private and internal fields
MemberWhat it is
private float nextTimeTime the next step runs.
private int stepWhich step of the flip comes next.

Methods​

MemberWhat it is
override void Update(bool hasTarget)Step 0 cancels if upright or pops; step 1 adds the flip force and torque; then finishes.
protected override void OnStart()Resets the step and waits a random head-flip time.