ViewConeOperation
A class in Root.Township, Alta.Intelligence.
Inspector component that adds a view cone sense check to an AI action's target scoring. Its OnValidate migrates it to the newer sense operation setup.
- Listed in Creatures and AI
- Inherits or implements
TargetOperationComponent
Constructors
| Member | What it is |
|---|---|
ViewConeOperation() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Methods
| Member | What it is |
|---|---|
override TargetOperation GetOperation() | Returns a target operation that maps the view cone sense from from to to, weighted by multiplier. |
protected override string GetName() | Builds the GameObject name from the settings, such as View Cone 1 -> 0 (x1). |
protected override void OnValidate() | Editor: renames the GameObject and migrates the settings into an OldSenseOperation. |