Class FollowStateBehavior
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
animatorAnimatoragentNavMeshAgentinitialStateFollowState
Fields
animatorParameterBlend
public string animatorParameterBlend
Field Value
runSpeed
public const float runSpeed = 4
Field Value
stopDistance
public const float stopDistance = 1.5
Field Value
target
public Transform target
Field Value
- Transform
waitFromIdleToWalk
public const float waitFromIdleToWalk = 0.5
Field Value
walkSpeed
public const float walkSpeed = 2
Field Value
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()