Requires a CharacterMovement ability. Makes the character move up to the specified MinimumDistance in the direction of the target.
More...
|
| bool | UseMinimumXDistance = true |
| | if this is true, movement will be constrained to not overstep a certain distance to the target on the x axis
|
| float | MinimumXDistance = 1f |
| | the minimum distance from the target this Character can reach on the x axis.
|
| InitializationModes | InitializationMode |
| | whether initialization should happen only once, or every time the brain is reset
|
| string | Label |
| | a label you can set to organize your AI Actions, not used by anything else
|
|
| virtual void | Move () |
| | Moves the character towards the target if needed.
|
| virtual void | Awake () |
| | On Awake we grab our AIBrain.
|
Requires a CharacterMovement ability. Makes the character move up to the specified MinimumDistance in the direction of the target.
◆ Initialization()
| override void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.Initialization |
( |
| ) |
|
|
virtual |
◆ Move()
| virtual void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.Move |
( |
| ) |
|
|
protectedvirtual |
Moves the character towards the target if needed.
◆ OnExitState()
| override void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.OnExitState |
( |
| ) |
|
|
virtual |
◆ PerformAction()
| override void MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.PerformAction |
( |
| ) |
|
On PerformAction we move.
◆ _characterMovement
| CharacterMovement MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D._characterMovement |
|
protected |
◆ _direction
| Vector2 MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D._direction |
|
protected |
◆ _numberOfJumps
| int MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D._numberOfJumps = 0 |
|
protected |
◆ MinimumXDistance
| float MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.MinimumXDistance = 1f |
the minimum distance from the target this Character can reach on the x axis.
◆ UseMinimumXDistance
| bool MoreMountains.TopDownEngine.AIActionMoveTowardsTarget2D.UseMinimumXDistance = true |
if this is true, movement will be constrained to not overstep a certain distance to the target on the x axis
The documentation for this class was generated from the following file: