3D Dungeon Crawler
Loading...
Searching...
No Matches
RangedEnemyAI Class Reference
Inheritance diagram for RangedEnemyAI:
EnemyAI

Public Member Functions

override void AttackPlayer ()
 
- Public Member Functions inherited from EnemyAI
void SetBossSpawnPoint (Vector3 position)
 
void SetSpawnPosition (Vector3 positon)
 
void CreateNewWayPoint ()
 
void ResetAttack ()
 
void NextPoint ()
 

Public Attributes

Projectile projectile
 
Spell spellToCast
 
GameObject aim
 
- Public Attributes inherited from EnemyAI
Transform player
 
NavMeshAgent enemy
 
float walkSpeed = 3f
 
float runSpeed = 5f
 
float pushForce = 8f
 
int attackDamage = 5
 
float wayPointRange = 10f
 
float viewRadius = 15f
 
float viewAngle = 90
 
float timeBetweenAttacks
 
bool alreadyAttacked = false
 
float sightRange
 
float attackRange
 
bool playerInSightRange
 
bool playerInAttackRange
 
Vector3 currentPlayerPosition
 
Vector3 lastSeenPlayerPositon = Vector3.zero
 
LayerMask playerLM
 
LayerMask obstaclesLM
 
List< Vector3 > wayPoints = new List<Vector3>()
 
int numberOfWayPoints = 8
 
int currentWaypointIndex
 
float startWaitTime = 2
 
float timeToRotate = 2
 

Additional Inherited Members

- Protected Attributes inherited from EnemyAI
Animator animator
 

Member Function Documentation

◆ AttackPlayer()

override void RangedEnemyAI.AttackPlayer ( )
virtual

Reimplemented from EnemyAI.

Member Data Documentation

◆ aim

GameObject RangedEnemyAI.aim

◆ projectile

Projectile RangedEnemyAI.projectile

◆ spellToCast

Spell RangedEnemyAI.spellToCast

The documentation for this class was generated from the following file: