Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

EnemyMovement.cs

ErikOverflow edited this page Apr 9, 2019 · 1 revision
Dependencies:
Methods:
  • None
Events:
  • None
Fields:
  • moveSpeed - Units/second that the enemy can move
  • responseTime - Maximum length of time it will take an enemy to respond to a direction change
General Overview:

This script listens to EnemyTargeting's OnNewTargetAcquired and OnTargetLost events, chasing towards acquired targets. If there is no target in range, StopChasing() is called and the enemy stops moving.

Clone this wiki locally