|
TopDown Engine v4.5
|
This action lets your AI agent dash when performed. More...
Public Types | |
| enum | Modes { TowardsTarget , AwayFromTarget , None } |
| the direction the dash should occur in More... | |
| Public Types inherited from MoreMountains.Tools.AIAction | |
| enum | InitializationModes { EveryTime , OnlyOnce } |
Public Member Functions | |
| override void | Initialization () |
| On initialization we grab our dash ability and auto set it up if needed. | |
| override void | PerformAction () |
| On PerformAction we set the dash direction and start the dash. | |
| Public Member Functions inherited from MoreMountains.Tools.AIAction | |
| void | PerformAction () |
| virtual void | OnEnterState () |
| Describes what happens when the brain enters the state this action is in. Meant to be overridden. | |
| virtual void | OnExitState () |
| Describes what happens when the brain exits the state this action is in. Meant to be overridden. | |
Public Attributes | |
| Modes | Mode = Modes.TowardsTarget |
| the direction the dash should occur in | |
| bool | AutoSetupDashMode = true |
| whether or not the dash mode should be setup to Script automatically on the dash ability | |
| Public Attributes inherited from MoreMountains.Tools.AIAction | |
| 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 | |
Protected Attributes | |
| CharacterDash2D | _characterDash2D |
| CharacterDash3D | _characterDash3D |
| Protected Attributes inherited from MoreMountains.Tools.AIAction | |
| bool | _initialized |
| AIBrain | _brain |
Additional Inherited Members | |
| Protected Member Functions inherited from MoreMountains.Tools.AIAction | |
| virtual void | Awake () |
| On Awake we grab our AIBrain. | |
| Properties inherited from MoreMountains.Tools.AIAction | |
| virtual bool | ActionInProgress [get, set] |
| virtual bool | ShouldInitialize [get] |
This action lets your AI agent dash when performed.
|
virtual |
On initialization we grab our dash ability and auto set it up if needed.
Reimplemented from MoreMountains.Tools.AIAction.
| override void MoreMountains.TopDownEngine.AIActionDash.PerformAction | ( | ) |
On PerformAction we set the dash direction and start the dash.
|
protected |
|
protected |
| bool MoreMountains.TopDownEngine.AIActionDash.AutoSetupDashMode = true |
whether or not the dash mode should be setup to Script automatically on the dash ability
| Modes MoreMountains.TopDownEngine.AIActionDash.Mode = Modes.TowardsTarget |
the direction the dash should occur in