C# 클래스 Saboteur, astrochimps

상속: MonoBehaviour
파일 보기 프로젝트 열기: arcoelho01/astrochimps 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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 ltCandidates ) : Transform

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

메소드 상세

AllyStart() 공개 메소드

public AllyStart ( ) : void
리턴 void

AllyUpdate() 공개 메소드

public AllyUpdate ( ) : void
리턴 void

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

CheckForEnemiesInView() 공개 메소드

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
리턴 void

CheckRadiusForAgents() 공개 메소드

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
리턴 Transform

DefensiveUpdate() 공개 메소드

public DefensiveUpdate ( ) : void
리턴 void

EnemyStart() 공개 메소드

public EnemyStart ( ) : void
리턴 void

OffensiveUpdate() 공개 메소드

public OffensiveUpdate ( ) : void
리턴 void

OnDrawGizmos() 공개 메소드

public OnDrawGizmos ( ) : void
리턴 void

PatrolSawMe() 공개 메소드

public PatrolSawMe ( ) : void
리턴 void

SabotageBuilding() 공개 메소드

public SabotageBuilding ( GameObject goTarget ) : void
goTarget GameObject
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

AIBehaviour 공개적으로 프로퍼티

public eSaboteurBehaviour AIBehaviour
리턴 eSaboteurBehaviour

amIVisible 공개적으로 프로퍼티

public bool amIVisible
리턴 bool

invisibleTimeCounter 공개적으로 프로퍼티

public float invisibleTimeCounter
리턴 float

myTransform 공개적으로 프로퍼티

public Transform myTransform
리턴 Transform