![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
Handles enemy patrol behavior and player detection. The enemy patrols between designated points and reverses direction when reaching the end of its patrol route. Detects the player using a field of view (FOV) system and switches to chasing behavior when the player is within range. Includes seamless integration with platform-finding and tile-based patrol points. More...
Private Member Functions | |
void | UpdatePatrolPoints () |
Updates the patrol points based on the closest platform to the enemy. Patrol points are determined using the PlatformFinder system, ensuring the enemy patrols on valid platforms. | |
void | PatrolMovement () |
Manages enemy movement between patrol points. Moves towards the current target point, reverses direction when reaching the end of the patrol route, and stops when within a specified distance from the target. | |
Handles enemy patrol behavior and player detection. The enemy patrols between designated points and reverses direction when reaching the end of its patrol route. Detects the player using a field of view (FOV) system and switches to chasing behavior when the player is within range. Includes seamless integration with platform-finding and tile-based patrol points.
Definition at line 16 of file PatrolEnemy.cs.