This Action will make the Character fly until it hits a wall or a hole while following a path.
More...
This Action will make the Character fly until it hits a wall or a hole while following a path.
◆ ChangeDirection()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.ChangeDirection |
( |
| ) |
|
|
protectedvirtual |
Changes the current movement direction
◆ CheckForObstacles()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.CheckForObstacles |
( |
| ) |
|
|
protectedvirtual |
Checks for a wall and changes direction if it meets one
◆ FlyPatrol()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.FlyPatrol |
( |
| ) |
|
|
protectedvirtual |
This method initiates all the required checks and moves the character
◆ Initialization()
override void MoreMountains.CorgiEngine.AIActionFlyPatrol.Initialization |
( |
| ) |
|
|
virtual |
◆ OnDisable()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable we stop listening for OnRevive events
◆ OnDrawGizmosSelected()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.OnDrawGizmosSelected |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable we start listening for OnRevive events
◆ OnExitState()
override void MoreMountains.CorgiEngine.AIActionFlyPatrol.OnExitState |
( |
| ) |
|
|
virtual |
◆ OnRevive()
virtual void MoreMountains.CorgiEngine.AIActionFlyPatrol.OnRevive |
( |
| ) |
|
|
protectedvirtual |
When reviving we make sure our directions are properly setup
◆ PerformAction()
override void MoreMountains.CorgiEngine.AIActionFlyPatrol.PerformAction |
( |
| ) |
|
|
virtual |
◆ _character
Character MoreMountains.CorgiEngine.AIActionFlyPatrol._character |
|
protected |
◆ _characterFly
CharacterFly MoreMountains.CorgiEngine.AIActionFlyPatrol._characterFly |
|
protected |
◆ _controller
◆ _direction
Vector2 MoreMountains.CorgiEngine.AIActionFlyPatrol._direction |
|
protected |
◆ _distanceToTarget
float MoreMountains.CorgiEngine.AIActionFlyPatrol._distanceToTarget |
|
protected |
◆ _health
Health MoreMountains.CorgiEngine.AIActionFlyPatrol._health |
|
protected |
◆ _initialDirection
Vector2 MoreMountains.CorgiEngine.AIActionFlyPatrol._initialDirection |
|
protected |
◆ _initialPosition
Vector3 MoreMountains.CorgiEngine.AIActionFlyPatrol._initialPosition |
|
protected |
◆ _initialScale
Vector3 MoreMountains.CorgiEngine.AIActionFlyPatrol._initialScale |
|
protected |
◆ _mmPath
MMPath MoreMountains.CorgiEngine.AIActionFlyPatrol._mmPath |
|
protected |
◆ _mmPathIndexLastFrame
int MoreMountains.CorgiEngine.AIActionFlyPatrol._mmPathIndexLastFrame |
|
protected |
◆ _mmPathPointLastFrame
Vector3 MoreMountains.CorgiEngine.AIActionFlyPatrol._mmPathPointLastFrame |
|
protected |
◆ _startPosition
Vector2 MoreMountains.CorgiEngine.AIActionFlyPatrol._startPosition |
|
protected |
◆ _waitDelay
float MoreMountains.CorgiEngine.AIActionFlyPatrol._waitDelay = 0f |
|
protected |
◆ ChangeDirectionOnObstacle
bool MoreMountains.CorgiEngine.AIActionFlyPatrol.ChangeDirectionOnObstacle = true |
if set to true, the agent will change direction when hitting an obstacle
◆ ResetPositionOnDeath
bool MoreMountains.CorgiEngine.AIActionFlyPatrol.ResetPositionOnDeath = true |
if this is true, the character will automatically return to its initial position on revive
The documentation for this class was generated from the following file: