Table of Contents

Class FollowStateBehavior

Namespace
WitShells.WitActor
public class FollowStateBehavior : ABehaviorState<FollowState>, IState
Inheritance
FollowStateBehavior
Implements
Inherited Members

Constructors

FollowStateBehavior(Animator, NavMeshAgent, FollowState)

public FollowStateBehavior(Animator animator, NavMeshAgent agent, FollowState initialState)

Parameters

animator Animator
agent NavMeshAgent
initialState FollowState

Fields

animatorParameterBlend

public string animatorParameterBlend

Field Value

string

runSpeed

public const float runSpeed = 4

Field Value

float

stopDistance

public const float stopDistance = 1.5

Field Value

float

target

public Transform target

Field Value

Transform

waitFromIdleToWalk

public const float waitFromIdleToWalk = 0.5

Field Value

float

walkSpeed

public const float walkSpeed = 2

Field Value

float

Methods

OnEnter()

Called when the state is entered.

public override void OnEnter()

OnExit()

Called when the state is exited.

public override void OnExit()

OnUpdate()

Called every frame while the state is active.

public override void OnUpdate()