This repository was archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
EnemyMovement.cs
ErikOverflow edited this page Apr 9, 2019
·
1 revision
- (Event-Handler) EnemyTargeting
- (Initializer) EnemyHook
- RigidBody2d
- None
- None
- moveSpeed - Units/second that the enemy can move
- responseTime - Maximum length of time it will take an enemy to respond to a direction change
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.
Script Documentation
General Scripts
Generic Character Scripts
Enemy Scripts
Player Scripts
Erik's ongoing laundry list of TODOs that he doesn't want to create issues for