|
TopDown Engine v4.5
|
An AIACtion used to have an AI kill itself. More...
Public Member Functions | |
| override void | Initialization () |
| On init we grab our Health. | |
| override void | PerformAction () |
| Kills the AI. | |
| override void | OnEnterState () |
| On enter state we reset our flag. | |
| Public Member Functions inherited from MoreMountains.Tools.AIAction | |
| void | PerformAction () |
| virtual void | OnExitState () |
| Describes what happens when the brain exits the state this action is in. Meant to be overridden. | |
Public Attributes | |
| bool | OnlyRunOnce = true |
| 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 | |
| Character | _character |
| Health | _health |
| bool | _alreadyRan = false |
| Protected Attributes inherited from MoreMountains.Tools.AIAction | |
| bool | _initialized |
| AIBrain | _brain |
Additional Inherited Members | |
| Public Types inherited from MoreMountains.Tools.AIAction | |
| enum | InitializationModes { EveryTime , OnlyOnce } |
| 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] |
An AIACtion used to have an AI kill itself.
|
virtual |
On init we grab our Health.
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
On enter state we reset our flag.
Reimplemented from MoreMountains.Tools.AIAction.
| override void MoreMountains.TopDownEngine.AIActionSelfDestruct.PerformAction | ( | ) |
Kills the AI.
|
protected |
|
protected |
|
protected |
| bool MoreMountains.TopDownEngine.AIActionSelfDestruct.OnlyRunOnce = true |