ChanceOperation
A class in Root.Township, Alta.Intelligence.
Prefab component that adds a Chance scoring rule to its action, from the scoring child object it sits under. Renames its GameObject to show its values.
- Listed in Creatures and AI
- Inherits or implements
TargetOperationComponent
Constructors
| Member | What it is |
|---|---|
ChanceOperation() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
Methods
| Member | What it is |
|---|---|
override TargetOperation GetOperation() | Makes the Chance rule with these values and multiplier as its weight. |
protected override string GetName() | Builds the GameObject name, like Chance 0.5 ? 1 : 0 (x1). |