DistanceTransition

It will transition the state by the distance between the target of GameObject.

DistanceTransition

Properties

Property NameDescription
Target Transform to be compared.
Distance The distance between the Target.
Near State Transition destination state if it is closer than the Distance.
Transition Method : OnStateUpdate
Far State Transition destination state if it is farther away than the Distance.
Transition Method : OnStateUpdate