Method | Description | |
---|---|---|
CheckRadiusForAgents ( ) : Transform |
This method is called when there an enemy in our view. So, we must decide what is best: engage with this enemy, proceed with our current target, if any, etc.
|
|
DeliverPrisoner ( Transform tPrisonBuilding, CBaseEntity, entityPrisoner ) : void |
Executes the delivery of the captured monkey to the prison building
|
|
GetLastTargetSightedPosition ( ) : Vector3 |
Returns the position where the drone last saw an enemy
|
|
GetNearestPrison ( ) : Transform |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
CheckForEnemiesInView ( int enemyLayer, float fRadius ) : void |
Check for any enemies inside the field of view of this drone
|
|
OnDrawGizmos ( ) : void |
Draw some helpers on screen
|
|
PickClosestTargetFromTheList ( List |
Receive a list of possibles targets and return which one is closest to this drone
|
|
Start ( ) : void | ||
Update ( ) : void |
public DeliverPrisoner ( Transform tPrisonBuilding, CBaseEntity, entityPrisoner ) : void | ||
tPrisonBuilding | Transform | |
entityPrisoner | CBaseEntity, | |
return | void |
public GetLastTargetSightedPosition ( ) : Vector3 | ||
return | Vector3 |