Skip to main content

AgentDelayEnterSetSettings

A class in Root.Township, Alta.Intelligence.

Settings for ActiveDelayEnterSet: wait a random time, then switch the agent to another action set.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private ActionComponentSet exitToBacking field for ExitTo.
private float maximumDurationLongest wait.
private float minimumDurationShortest wait.

Properties​

MemberWhat it is
float Duration { get; }A new random time between the minimum and maximum each time it is read.
ActionComponentSet ExitTo { get; }Action set switched to when the wait finishes, if set.

Methods​

MemberWhat it is
protected override IAction GetAction()Builds the ActiveDelayEnterSet action, using a target.