Skip to main content

GroundedOperation

A class in Root.Township, Alta.Intelligence.

Prefab scoring component that adds a Grounded rule. It has no multiplier, so its weight is always 1.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float airValueValue when the creature is in the air (default 0).
private float groundedValueValue when the creature is grounded (default 1).

Methods​

MemberWhat it is
override TargetOperation GetOperation()Makes the Grounded rule with these values.
protected override string GetName()Builds the GameObject name, like Grounded ? 1 : 0.