C# Class Saboteur, astrochimps

Inheritance: MonoBehaviour
Exibir arquivo Open project: arcoelho01/astrochimps Class Usage Examples

Public Properties

Property Type Description
AIBehaviour eSaboteurBehaviour
amIVisible bool
invisibleTimeCounter float
myTransform Transform

Public Methods

Method 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

Method Description
PickClosestTargetFromTheList ( List ltCandidates ) : Transform

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

Method Details

AllyStart() public method

public AllyStart ( ) : void
return void

AllyUpdate() public method

public AllyUpdate ( ) : void
return void

Awake() public method

public Awake ( ) : void
return void

CheckForEnemiesInView() public method

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
return void

CheckRadiusForAgents() public method

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
return Transform

DefensiveUpdate() public method

public DefensiveUpdate ( ) : void
return void

EnemyStart() public method

public EnemyStart ( ) : void
return void

OffensiveUpdate() public method

public OffensiveUpdate ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

PatrolSawMe() public method

public PatrolSawMe ( ) : void
return void

SabotageBuilding() public method

public SabotageBuilding ( GameObject goTarget ) : void
goTarget GameObject
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

AIBehaviour public_oe property

public eSaboteurBehaviour AIBehaviour
return eSaboteurBehaviour

amIVisible public_oe property

public bool amIVisible
return bool

invisibleTimeCounter public_oe property

public float invisibleTimeCounter
return float

myTransform public_oe property

public Transform myTransform
return Transform