Verifies that the given Target has moved.
This is useful in order to save performance by recalculating the path only if the target position changed.
Public Fields | |
GameObject | Target |
The observed target. More... | |
float | MaxDeltaPosition = 1.0f |
Determines the maximum distance that the Target can move. More... | |
bool | Enabled = false |
Determines if this Validator instance is enabled. More... | |
Public Methods | |
TargetValidator () | |
Creates a new TargetValidator instance and sets Validator.Enabledtrue . More... | |
override bool | Validate () |
Verifies the movement of the given Target. More... | |