TopDown Engine
v3.6
|
This AI Action will let an agent with a CharacterOrientation2D ability face its target More...
Public Types | |
enum | Modes { Modes.LeftRight, Modes.FacingDirections } |
the possible modes you can ask the AI to face (should - usually - match your CharacterOrientation2D settings) More... | |
Public Types inherited from MoreMountains.Tools.AIAction | |
enum | InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce } |
Public Member Functions | |
override void | Initialization () |
On init we grab our CharacterOrientation2D ability More... | |
override void | PerformAction () |
On PerformAction we face our target 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... | |
Public Attributes | |
Modes | Mode = Modes.LeftRight |
the selected facing mode More... | |
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 | |
virtual void | FaceTarget () |
Makes the orientation 2D ability face towards the brain target More... | |
Protected Member Functions inherited from MoreMountains.Tools.AIAction | |
virtual void | Awake () |
On Awake we grab our AIBrain More... | |
Protected Attributes | |
CharacterOrientation2D | _characterOrientation2D |
Vector3 | _targetPosition |
Vector2 | _distance |
bool | _chacterOrientation2DNotNull |
Character.FacingDirections | _newFacingDirection |
Protected Attributes inherited from MoreMountains.Tools.AIAction | |
bool | _initialized |
AIBrain | _brain |
Additional Inherited Members | |
Properties inherited from MoreMountains.Tools.AIAction | |
virtual bool | ActionInProgress [get, set] |
virtual bool | ShouldInitialize [get] |
This AI Action will let an agent with a CharacterOrientation2D ability face its target
the possible modes you can ask the AI to face (should - usually - match your CharacterOrientation2D settings)
Enumerator | |
---|---|
LeftRight | |
FacingDirections |
|
protectedvirtual |
Makes the orientation 2D ability face towards the brain target
|
virtual |
On init we grab our CharacterOrientation2D ability
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
On PerformAction we face our target
Implements MoreMountains.Tools.AIAction.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Modes MoreMountains.TopDownEngine.AIActionFaceTowardsTarget2D.Mode = Modes.LeftRight |
the selected facing mode