TopDown Engine  v3.6
MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget Class Reference

An Action that will set the last known position of the target as the new Target More...

Inheritance diagram for MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget:
MoreMountains.Tools.AIAction

Public Member Functions

override void Initialization ()
 On init we prepare a new game object to act as the new target More...
 
override void PerformAction ()
 we move our target to the last known position and assign it to the brain More...
 
- Public Member Functions inherited from MoreMountains.Tools.AIAction
virtual void OnEnterState ()
 Describes what happens when the brain enters the state this action is in. Meant to be overridden. More...
 
virtual void OnExitState ()
 Describes what happens when the brain exits the state this action is in. Meant to be overridden. More...
 

Protected Attributes

Transform _targetTransform
 
- Protected Attributes inherited from MoreMountains.Tools.AIAction
bool _initialized
 
AIBrain _brain
 

Additional Inherited Members

- Public Types inherited from MoreMountains.Tools.AIAction
enum  InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce }
 
- Public Attributes inherited from MoreMountains.Tools.AIAction
InitializationModes InitializationMode
 
string Label
 a label you can set to organize your AI Actions, not used by anything else More...
 
- Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain More...
 
- Properties inherited from MoreMountains.Tools.AIAction
virtual bool ActionInProgress [get, set]
 
virtual bool ShouldInitialize [get]
 

Detailed Description

An Action that will set the last known position of the target as the new Target

Member Function Documentation

◆ Initialization()

override void MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget.Initialization ( )
virtual

On init we prepare a new game object to act as the new target

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

override void MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget.PerformAction ( )
virtual

we move our target to the last known position and assign it to the brain

Implements MoreMountains.Tools.AIAction.

Member Data Documentation

◆ _targetTransform

Transform MoreMountains.TopDownEngine.AIActionSetLastKnownPositionAsTarget._targetTransform
protected

The documentation for this class was generated from the following file: