C# Class EnemyAIController

Inheritance: MonoBehaviour
Afficher le fichier Open project: mezosaurus/eae-project Class Usage Examples

Méthodes publiques

Свойство Type Description
axemanIntroSounds UnityEngine.AudioClip[]
axemanWrongSounds UnityEngine.AudioClip[]
hitSound1 UnityEngine.AudioClip
hitSound2 UnityEngine.AudioClip
hitSound3 UnityEngine.AudioClip
investigateTime float
sittingTime float
wanderRadius float

Protected Properties

Свойство Type Description
angry bool
calledToPoint bool
checkingPlayer bool
hitCounter int
investigatePath bool
investigating bool
lastPlayer GameObject
leaveTime float
nextInvestigateTime float
panickedNPCPosition Vector3
treeList ArrayList
treePath bool

Méthodes publiques

Méthode Description
Start ( ) : void

Méthodes protégées

Méthode Description
NPCHandleSeeingPlayer ( ) : bool
NPCOnDestroy ( ) : void
OnCollisionEnter2D ( Collision2D collision ) : void
alert ( ) : void
animateCharacter ( Vector3 movement, Vector3 moveTo ) : void
chasePlayer ( ) : void
decrementAlertLevel ( ) : void
getAllPlayerTrees ( ) : ArrayList
getWanderPoint ( Vector3 center ) : Vector3
handleSitting ( ) : void
initAxeMan ( ) : void
investigate ( ) : void
panic ( ) : void
updateEnemyNPC ( ) : bool

Method Details

NPCHandleSeeingPlayer() protected méthode

protected NPCHandleSeeingPlayer ( ) : bool
Résultat bool

NPCOnDestroy() protected méthode

protected NPCOnDestroy ( ) : void
Résultat void

OnCollisionEnter2D() protected méthode

protected OnCollisionEnter2D ( Collision2D collision ) : void
collision Collision2D
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

alert() protected méthode

protected alert ( ) : void
Résultat void

animateCharacter() protected méthode

protected animateCharacter ( Vector3 movement, Vector3 moveTo ) : void
movement Vector3
moveTo Vector3
Résultat void

chasePlayer() protected méthode

protected chasePlayer ( ) : void
Résultat void

decrementAlertLevel() protected méthode

protected decrementAlertLevel ( ) : void
Résultat void

getAllPlayerTrees() protected méthode

protected getAllPlayerTrees ( ) : ArrayList
Résultat ArrayList

getWanderPoint() protected méthode

protected getWanderPoint ( Vector3 center ) : Vector3
center Vector3
Résultat Vector3

handleSitting() protected méthode

protected handleSitting ( ) : void
Résultat void

initAxeMan() protected méthode

protected initAxeMan ( ) : void
Résultat void

investigate() protected méthode

protected investigate ( ) : void
Résultat void

panic() protected méthode

protected panic ( ) : void
Résultat void

updateEnemyNPC() protected méthode

protected updateEnemyNPC ( ) : bool
Résultat bool

Property Details

angry protected_oe property

protected bool angry
Résultat bool

axemanIntroSounds public_oe property

public AudioClip[],UnityEngine axemanIntroSounds
Résultat UnityEngine.AudioClip[]

axemanWrongSounds public_oe property

public AudioClip[],UnityEngine axemanWrongSounds
Résultat UnityEngine.AudioClip[]

calledToPoint protected_oe property

protected bool calledToPoint
Résultat bool

checkingPlayer protected_oe property

protected bool checkingPlayer
Résultat bool

hitCounter protected_oe property

protected int hitCounter
Résultat int

hitSound1 public_oe property

public AudioClip,UnityEngine hitSound1
Résultat UnityEngine.AudioClip

hitSound2 public_oe property

public AudioClip,UnityEngine hitSound2
Résultat UnityEngine.AudioClip

hitSound3 public_oe property

public AudioClip,UnityEngine hitSound3
Résultat UnityEngine.AudioClip

investigatePath protected_oe property

protected bool investigatePath
Résultat bool

investigateTime public_oe property

public float investigateTime
Résultat float

investigating protected_oe property

protected bool investigating
Résultat bool

lastPlayer protected_oe property

protected GameObject lastPlayer
Résultat GameObject

leaveTime protected_oe property

protected float leaveTime
Résultat float

nextInvestigateTime protected_oe property

protected float nextInvestigateTime
Résultat float

panickedNPCPosition protected_oe property

protected Vector3 panickedNPCPosition
Résultat Vector3

sittingTime public_oe property

public float sittingTime
Résultat float

treeList protected_oe property

protected ArrayList treeList
Résultat ArrayList

treePath protected_oe property

protected bool treePath
Résultat bool

wanderRadius public_oe property

public float wanderRadius
Résultat float