Corgi Engine
v9.0
|
Requires a CharacterFly ability. Makes the character fly up to the specified MinimumDistance in the direction of the target. That's how the RetroGhosts move. More...
Public Member Functions | |
override void | Initialization () |
On init we grab our CharacterFly ability More... | |
override void | PerformAction () |
On PerformAction we fly More... | |
override void | OnExitState () |
On exit state we stop our movement 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... | |
Public Attributes | |
float | MinimumDistance = 1f |
the minimum distance from the target this Character can reach. More... | |
Public Attributes inherited from MoreMountains.Tools.AIAction | |
InitializationModes | InitializationMode |
whether initialization should happen only once, or every time the brain is reset More... | |
string | Label |
a label you can set to organize your AI Actions, not used by anything else More... | |
Protected Member Functions | |
virtual void | Fly () |
Moves the character towards the target if needed More... | |
Protected Member Functions inherited from MoreMountains.Tools.AIAction | |
virtual void | Awake () |
On Awake we grab our AIBrain More... | |
Protected Attributes | |
CharacterFly | _characterFly |
int | _numberOfJumps = 0 |
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 } |
Properties inherited from MoreMountains.Tools.AIAction | |
virtual bool | ActionInProgress [get, set] |
virtual bool | ShouldInitialize [get] |
Requires a CharacterFly ability. Makes the character fly up to the specified MinimumDistance in the direction of the target. That's how the RetroGhosts move.
|
protectedvirtual |
Moves the character towards the target if needed
|
virtual |
On init we grab our CharacterFly ability
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
On exit state we stop our movement
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
On PerformAction we fly
Implements MoreMountains.Tools.AIAction.
|
protected |
|
protected |
float MoreMountains.CorgiEngine.AIActionFlyTowardsTarget.MinimumDistance = 1f |
the minimum distance from the target this Character can reach.