C# Класс EnemyAIController

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
axemanIntroSounds UnityEngine.AudioClip[]
axemanWrongSounds UnityEngine.AudioClip[]
hitSound1 UnityEngine.AudioClip
hitSound2 UnityEngine.AudioClip
hitSound3 UnityEngine.AudioClip
investigateTime float
sittingTime float
wanderRadius float

Защищенные свойства (Protected)

Свойство Тип Описание
angry bool
calledToPoint bool
checkingPlayer bool
hitCounter int
investigatePath bool
investigating bool
lastPlayer GameObject
leaveTime float
nextInvestigateTime float
panickedNPCPosition Vector3
treeList ArrayList
treePath bool

Открытые методы

Метод Описание
Start ( ) : void

Защищенные методы

Метод Описание
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

Описание методов

NPCHandleSeeingPlayer() защищенный Метод

protected NPCHandleSeeingPlayer ( ) : bool
Результат bool

NPCOnDestroy() защищенный Метод

protected NPCOnDestroy ( ) : void
Результат void

OnCollisionEnter2D() защищенный Метод

protected OnCollisionEnter2D ( Collision2D collision ) : void
collision Collision2D
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

alert() защищенный Метод

protected alert ( ) : void
Результат void

animateCharacter() защищенный Метод

protected animateCharacter ( Vector3 movement, Vector3 moveTo ) : void
movement Vector3
moveTo Vector3
Результат void

chasePlayer() защищенный Метод

protected chasePlayer ( ) : void
Результат void

decrementAlertLevel() защищенный Метод

protected decrementAlertLevel ( ) : void
Результат void

getAllPlayerTrees() защищенный Метод

protected getAllPlayerTrees ( ) : ArrayList
Результат ArrayList

getWanderPoint() защищенный Метод

protected getWanderPoint ( Vector3 center ) : Vector3
center Vector3
Результат Vector3

handleSitting() защищенный Метод

protected handleSitting ( ) : void
Результат void

initAxeMan() защищенный Метод

protected initAxeMan ( ) : void
Результат void

investigate() защищенный Метод

protected investigate ( ) : void
Результат void

panic() защищенный Метод

protected panic ( ) : void
Результат void

updateEnemyNPC() защищенный Метод

protected updateEnemyNPC ( ) : bool
Результат bool

Описание свойств

angry защищенное свойство

protected bool angry
Результат bool

axemanIntroSounds публичное свойство

public AudioClip[],UnityEngine axemanIntroSounds
Результат UnityEngine.AudioClip[]

axemanWrongSounds публичное свойство

public AudioClip[],UnityEngine axemanWrongSounds
Результат UnityEngine.AudioClip[]

calledToPoint защищенное свойство

protected bool calledToPoint
Результат bool

checkingPlayer защищенное свойство

protected bool checkingPlayer
Результат bool

hitCounter защищенное свойство

protected int hitCounter
Результат int

hitSound1 публичное свойство

public AudioClip,UnityEngine hitSound1
Результат UnityEngine.AudioClip

hitSound2 публичное свойство

public AudioClip,UnityEngine hitSound2
Результат UnityEngine.AudioClip

hitSound3 публичное свойство

public AudioClip,UnityEngine hitSound3
Результат UnityEngine.AudioClip

investigatePath защищенное свойство

protected bool investigatePath
Результат bool

investigateTime публичное свойство

public float investigateTime
Результат float

investigating защищенное свойство

protected bool investigating
Результат bool

lastPlayer защищенное свойство

protected GameObject lastPlayer
Результат GameObject

leaveTime защищенное свойство

protected float leaveTime
Результат float

nextInvestigateTime защищенное свойство

protected float nextInvestigateTime
Результат float

panickedNPCPosition защищенное свойство

protected Vector3 panickedNPCPosition
Результат Vector3

sittingTime публичное свойство

public float sittingTime
Результат float

treeList защищенное свойство

protected ArrayList treeList
Результат ArrayList

treePath защищенное свойство

protected bool treePath
Результат bool

wanderRadius публичное свойство

public float wanderRadius
Результат float