Polarith AI
1.8
TargetValidator Class Reference

Description

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.

Inheritance diagram for TargetValidator:
Validator

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...
 
Imprint