Skip to main content

AgentSwapActionSetSettings

A class in Root.Township, Alta.Intelligence.

Action component that switches the agent to another ActionComponentSet and then runs for a fixed duration.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float durationBacking field for Duration.
private bool isUsingTargetBacking field for IsUsingTarget.
private ActionComponentSet setBacking field for Set.

Properties​

MemberWhat it is
float Duration { get; }How long the swap action lasts after switching sets.
bool IsUsingTarget { get; }Whether the action needs a target.
ActionComponentSet Set { get; }The action set the agent switches to when this action starts.

Methods​

MemberWhat it is
protected override IAction GetAction()Returns the ActiveSwapActionSet action for these settings.

Used in​

Members of other types that take, return or hold a AgentSwapActionSetSettings: