Свойство | Тип | Описание | |
---|---|---|---|
AIBehaviour | eSaboteurBehaviour | ||
amIVisible | bool | ||
invisibleTimeCounter | float | ||
myTransform | Transform |
Метод | Описание | |
---|---|---|
AllyStart ( ) : void | ||
AllyUpdate ( ) : void | ||
Awake ( ) : void | ||
CheckForEnemiesInView ( int enemyLayer, float fRadius ) : void |
Check for any enemies inside the field of view of this drone
|
|
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.
|
|
DefensiveUpdate ( ) : void | ||
EnemyStart ( ) : void | ||
OffensiveUpdate ( ) : void | ||
OnDrawGizmos ( ) : void | ||
PatrolSawMe ( ) : void | ||
SabotageBuilding ( GameObject goTarget ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Метод | Описание | |
---|---|---|
PickClosestTargetFromTheList ( List |
Receive a list of possibles targets and return which one is closest to this drone
|
public CheckForEnemiesInView ( int enemyLayer, float fRadius ) : void | ||
enemyLayer | int | An int with the layer of the enemy. We will use this to filter other units that /// we are not interested |
fRadius | float | Radius of view |
Результат | void |
public CheckRadiusForAgents ( ) : Transform | ||
Результат | Transform |
public SabotageBuilding ( GameObject goTarget ) : void | ||
goTarget | GameObject | |
Результат | void |