Skip to main content

TargetOperationComponent

An abstract class in Root.Township, Alta.Intelligence.

Base component that supplies a TargetOperation for AI target scoring. Its object is renamed to match the operation in the editor.

Constructors​

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

Methods​

MemberWhat it is
abstract TargetOperation GetOperation()Builds the target operation.
protected abstract string GetName()Name for the operation, also used as the object name.
protected virtual void OnValidate()Renames the object to GetName in the editor.