Skip to main content

ActiveSchmeecheePlay

A class in Root.Township, Alta.Intelligence.

Schmeechee action where it runs around at random, slowing as its energy runs down, then finishes.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float energyStarts at 1 and drains slowly; lower energy means slower running.
private float lastCacheTime of the last stuck check.
private Vector3 lastPositionPosition at the last stuck check.

Methods​

MemberWhat it is
override void Update(bool hasTarget)While grounded, steers randomly and pushes forward; cancels if stuck, finishes when energy runs out.
protected override void OnStart()Records the start position and time, sets full energy and resets run speed.