C# Class EnemyAIController

Inheritance: MonoBehaviour
Datei anzeigen Open project: mezosaurus/eae-project Class Usage Examples

Public Properties

Property 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

Property 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

Public Methods

Method Description
Start ( ) : void

Protected Methods

Method 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 method

protected NPCHandleSeeingPlayer ( ) : bool
return bool

NPCOnDestroy() protected method

protected NPCOnDestroy ( ) : void
return void

OnCollisionEnter2D() protected method

protected OnCollisionEnter2D ( Collision2D collision ) : void
collision Collision2D
return void

Start() public method

public Start ( ) : void
return void

alert() protected method

protected alert ( ) : void
return void

animateCharacter() protected method

protected animateCharacter ( Vector3 movement, Vector3 moveTo ) : void
movement Vector3
moveTo Vector3
return void

chasePlayer() protected method

protected chasePlayer ( ) : void
return void

decrementAlertLevel() protected method

protected decrementAlertLevel ( ) : void
return void

getAllPlayerTrees() protected method

protected getAllPlayerTrees ( ) : ArrayList
return ArrayList

getWanderPoint() protected method

protected getWanderPoint ( Vector3 center ) : Vector3
center Vector3
return Vector3

handleSitting() protected method

protected handleSitting ( ) : void
return void

initAxeMan() protected method

protected initAxeMan ( ) : void
return void

investigate() protected method

protected investigate ( ) : void
return void

panic() protected method

protected panic ( ) : void
return void

updateEnemyNPC() protected method

protected updateEnemyNPC ( ) : bool
return bool

Property Details

angry protected_oe property

protected bool angry
return bool

axemanIntroSounds public_oe property

public AudioClip[],UnityEngine axemanIntroSounds
return UnityEngine.AudioClip[]

axemanWrongSounds public_oe property

public AudioClip[],UnityEngine axemanWrongSounds
return UnityEngine.AudioClip[]

calledToPoint protected_oe property

protected bool calledToPoint
return bool

checkingPlayer protected_oe property

protected bool checkingPlayer
return bool

hitCounter protected_oe property

protected int hitCounter
return int

hitSound1 public_oe property

public AudioClip,UnityEngine hitSound1
return UnityEngine.AudioClip

hitSound2 public_oe property

public AudioClip,UnityEngine hitSound2
return UnityEngine.AudioClip

hitSound3 public_oe property

public AudioClip,UnityEngine hitSound3
return UnityEngine.AudioClip

investigatePath protected_oe property

protected bool investigatePath
return bool

investigateTime public_oe property

public float investigateTime
return float

investigating protected_oe property

protected bool investigating
return bool

lastPlayer protected_oe property

protected GameObject lastPlayer
return GameObject

leaveTime protected_oe property

protected float leaveTime
return float

nextInvestigateTime protected_oe property

protected float nextInvestigateTime
return float

panickedNPCPosition protected_oe property

protected Vector3 panickedNPCPosition
return Vector3

sittingTime public_oe property

public float sittingTime
return float

treeList protected_oe property

protected ArrayList treeList
return ArrayList

treePath protected_oe property

protected bool treePath
return bool

wanderRadius public_oe property

public float wanderRadius
return float