public PatrolState(EnemyStateHandler enemyState)
 {
     enemy             = enemyState;
     movementHandler   = new EnemyMovementHandler(enemy.gameObject);
     patrolWaitTimer   = 0;
     nextWaypointIndex = 0;
 }
Exemple #2
0
 public ChaseState(EnemyStateHandler enemyState)
 {
     enemy            = enemyState;
     movementHandler  = new EnemyMovementHandler(enemy.gameObject);
     pathRefreshTimer = GameManager.Instance.pathFindingRate;
 }