C# Class Saboteur, astrochimps

Inheritance: MonoBehaviour
Afficher le fichier Open project: arcoelho01/astrochimps Class Usage Examples

Méthodes publiques

Свойство Type Description
AIBehaviour eSaboteurBehaviour
amIVisible bool
invisibleTimeCounter float
myTransform Transform

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
PickClosestTargetFromTheList ( List ltCandidates ) : Transform

Receive a list of possibles targets and return which one is closest to this drone

Method Details

AllyStart() public méthode

public AllyStart ( ) : void
Résultat void

AllyUpdate() public méthode

public AllyUpdate ( ) : void
Résultat void

Awake() public méthode

public Awake ( ) : void
Résultat void

CheckForEnemiesInView() public méthode

Check for any enemies inside the field of view of 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
Résultat void

CheckRadiusForAgents() public méthode

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.
public CheckRadiusForAgents ( ) : Transform
Résultat Transform

DefensiveUpdate() public méthode

public DefensiveUpdate ( ) : void
Résultat void

EnemyStart() public méthode

public EnemyStart ( ) : void
Résultat void

OffensiveUpdate() public méthode

public OffensiveUpdate ( ) : void
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

PatrolSawMe() public méthode

public PatrolSawMe ( ) : void
Résultat void

SabotageBuilding() public méthode

public SabotageBuilding ( GameObject goTarget ) : void
goTarget GameObject
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

AIBehaviour public_oe property

public eSaboteurBehaviour AIBehaviour
Résultat eSaboteurBehaviour

amIVisible public_oe property

public bool amIVisible
Résultat bool

invisibleTimeCounter public_oe property

public float invisibleTimeCounter
Résultat float

myTransform public_oe property

public Transform myTransform
Résultat Transform