DistanceTransition¶
It will transition the state by the distance between the target of GameObject.
Properties¶
Property Name | Description |
---|---|
Transform | Transform to compare from. |
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 |