DistanceTransition

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

DistanceTransition

Property

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