C# 클래스 AIController

상속: MonoBehaviour
파일 보기 프로젝트 열기: mezosaurus/eae-project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IsTaggedByTree bool
SkinType NPCSkinType
alertDecrement float
alertTexture GameObject
alerted bool
bopperAlertSounds AudioClip[]
bopperCuriousSounds AudioClip[]
bopperEaten AudioClip
bopperIdleSounds AudioClip[]
bopperPanicSounds AudioClip[]
detectLevel float
emptyAlert Texture2D
fullAlert Texture2D
grabbed bool
hearingAlertMultiplier float
hearingRadiusLevelMultiplier float
hippieAlertSounds AudioClip[]
hippieCuriousSounds AudioClip[]
hippieEaten AudioClip
hippieIdleSounds AudioClip[]
hippiePanicSounds AudioClip[]
hottieAlertSounds AudioClip[]
hottieCuriousSounds AudioClip[]
hottieEaten AudioClip
hottieIdleSounds AudioClip[]
hottiePanicSounds AudioClip[]
isCritterType bool
killSelf bool
lureCooldownSeconds float
lurePower float
lureTag string
lureTexture GameObject
lured bool
mowerAlertSounds AudioClip[]
mowerCuriousSounds AudioClip[]
mowerEaten AudioClip
mowerIdleSounds AudioClip[]
mowerPanicSounds AudioClip[]
mowing AudioClip
npcTag string
numPathStart int
numStationaryStart int
oldmanAlertSounds AudioClip[]
oldmanCuriousSounds AudioClip[]
oldmanEaten AudioClip
oldmanIdleSounds AudioClip[]
oldmanPanicSounds AudioClip[]
panicCooldownSeconds float
panicTexture GameObject
panicked bool
scared bool
scaredByAxeman bool
scaredCooldownSeconds float
scaredTexture GameObject
sightAlertMultiplier float
spawnTag string
speed float
visionAngleSize float
visionDistance float

보호된 프로퍼티들

프로퍼티 타입 설명
alertLevel float
alertThreshold float
enteredMap bool
idleCounter float
idlePlayTime float
lastDirectionWasRight bool
lastLure Lure
luredTimeLeft float
marked bool
moveDir Vector2
movePath SubpathScript
nearWall bool
nextPath GameObject
npcDir Vector3
panicThreshold float
panickedPos Vector3
playAlert bool
playCurious bool
playIdle bool
player GameObject
playerInRange bool
previousAlertLevel float
scaredTimeLeft float
visionAngleOffset float
walkingKey string
xScale float

공개 메소드들

메소드 설명
OnDestroy ( ) : void
Start ( ) : void
abilityPlacedListener ( Message message ) : void
eatenListener ( Message message ) : void
getLastLure ( ) : Lure
grabbedListener ( Message message ) : void
lureEnterListener ( Message message ) : void
lureReleaseListener ( Message message ) : void
markedBountyListener ( Message message ) : void
releasedListener ( Message message ) : void
trapEnterListener ( Message message ) : void
trapReleaseListener ( Message message ) : void

보호된 메소드들

메소드 설명
NPCHandleSeeingPlayer ( ) : bool
NPCOnDestroy ( ) : void
OnCollisionEnter2D ( Collision2D collision ) : void
OnCollisionExit2D ( Collision2D collision ) : void
OnTriggerEnter2D ( Collider2D other ) : void
OnTriggerExit2D ( Collider2D other ) : void
OnTriggerStay2D ( Collider2D other ) : void
alert ( ) : void
avoid ( Vector3 currentNPCDirection ) : Vector3
broadcastAlertLevelChanged ( AlertLevelType type ) : void
checkForPlayer ( ) : bool
createTempGameObject ( Vector3 pos, Transform parent ) : GameObject
decrementAlertLevel ( ) : void
destroyNPC ( ) : void
determineDirectionChange ( Vector3 npcPosition, Vector3 newPosition ) : void
flipXScale ( bool right ) : void
getLeavingPath ( ) : GameObject
getNextPath ( ) : GameObject
getPlayer ( ) : GameObject
handleLured ( ) : bool
ignoreBorder ( bool ignore, Collider2D other ) : void
lure ( Vector3 lurePosition ) : void
panic ( ) : void
scare ( Vector3 scaredPosition ) : void
setAnimatorInteger ( int animation ) : void
setAnimatorInteger ( string key, int animation ) : void
setNPCDirection ( Vector3 direction ) : void
updateNPC ( ) : bool

비공개 메소드들

메소드 설명
GetClosestPlayer ( Vector3 position ) : GameObject
increaseAlertLevel ( float sensitivity ) : void
testDirectionChange ( float biasTan, Vector3 low, Vector3 middle, Vector3 high ) : void

메소드 상세

NPCHandleSeeingPlayer() 보호된 메소드

protected NPCHandleSeeingPlayer ( ) : bool
리턴 bool

NPCOnDestroy() 보호된 메소드

protected NPCOnDestroy ( ) : void
리턴 void

OnCollisionEnter2D() 보호된 메소드

protected OnCollisionEnter2D ( Collision2D collision ) : void
collision Collision2D
리턴 void

OnCollisionExit2D() 보호된 메소드

protected OnCollisionExit2D ( Collision2D collision ) : void
collision Collision2D
리턴 void

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

OnTriggerEnter2D() 보호된 메소드

protected OnTriggerEnter2D ( Collider2D other ) : void
other UnityEngine.Collider2D
리턴 void

OnTriggerExit2D() 보호된 메소드

protected OnTriggerExit2D ( Collider2D other ) : void
other UnityEngine.Collider2D
리턴 void

OnTriggerStay2D() 보호된 메소드

protected OnTriggerStay2D ( Collider2D other ) : void
other UnityEngine.Collider2D
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

abilityPlacedListener() 공개 메소드

public abilityPlacedListener ( Message message ) : void
message Message
리턴 void

alert() 보호된 메소드

protected alert ( ) : void
리턴 void

avoid() 보호된 메소드

protected avoid ( Vector3 currentNPCDirection ) : Vector3
currentNPCDirection Vector3
리턴 Vector3

broadcastAlertLevelChanged() 보호된 메소드

protected broadcastAlertLevelChanged ( AlertLevelType type ) : void
type AlertLevelType
리턴 void

checkForPlayer() 보호된 메소드

protected checkForPlayer ( ) : bool
리턴 bool

createTempGameObject() 보호된 메소드

protected createTempGameObject ( Vector3 pos, Transform parent ) : GameObject
pos Vector3
parent Transform
리턴 GameObject

decrementAlertLevel() 보호된 메소드

protected decrementAlertLevel ( ) : void
리턴 void

destroyNPC() 보호된 메소드

protected destroyNPC ( ) : void
리턴 void

determineDirectionChange() 보호된 메소드

protected determineDirectionChange ( Vector3 npcPosition, Vector3 newPosition ) : void
npcPosition Vector3
newPosition Vector3
리턴 void

eatenListener() 공개 메소드

public eatenListener ( Message message ) : void
message Message
리턴 void

flipXScale() 보호된 메소드

protected flipXScale ( bool right ) : void
right bool
리턴 void

getLastLure() 공개 메소드

public getLastLure ( ) : Lure
리턴 Lure

getLeavingPath() 보호된 메소드

protected getLeavingPath ( ) : GameObject
리턴 GameObject

getNextPath() 보호된 메소드

protected getNextPath ( ) : GameObject
리턴 GameObject

getPlayer() 보호된 메소드

protected getPlayer ( ) : GameObject
리턴 GameObject

grabbedListener() 공개 메소드

public grabbedListener ( Message message ) : void
message Message
리턴 void

handleLured() 보호된 메소드

protected handleLured ( ) : bool
리턴 bool

ignoreBorder() 보호된 메소드

protected ignoreBorder ( bool ignore, Collider2D other ) : void
ignore bool
other Collider2D
리턴 void

lure() 보호된 메소드

protected lure ( Vector3 lurePosition ) : void
lurePosition Vector3
리턴 void

lureEnterListener() 공개 메소드

public lureEnterListener ( Message message ) : void
message Message
리턴 void

lureReleaseListener() 공개 메소드

public lureReleaseListener ( Message message ) : void
message Message
리턴 void

markedBountyListener() 공개 메소드

public markedBountyListener ( Message message ) : void
message Message
리턴 void

panic() 보호된 메소드

protected panic ( ) : void
리턴 void

releasedListener() 공개 메소드

public releasedListener ( Message message ) : void
message Message
리턴 void

scare() 보호된 메소드

protected scare ( Vector3 scaredPosition ) : void
scaredPosition Vector3
리턴 void

setAnimatorInteger() 보호된 메소드

protected setAnimatorInteger ( int animation ) : void
animation int
리턴 void

setAnimatorInteger() 보호된 메소드

protected setAnimatorInteger ( string key, int animation ) : void
key string
animation int
리턴 void

setNPCDirection() 보호된 메소드

protected setNPCDirection ( Vector3 direction ) : void
direction Vector3
리턴 void

trapEnterListener() 공개 메소드

public trapEnterListener ( Message message ) : void
message Message
리턴 void

trapReleaseListener() 공개 메소드

public trapReleaseListener ( Message message ) : void
message Message
리턴 void

updateNPC() 보호된 메소드

protected updateNPC ( ) : bool
리턴 bool

프로퍼티 상세

IsTaggedByTree 공개적으로 프로퍼티

public bool IsTaggedByTree
리턴 bool

SkinType 공개적으로 프로퍼티

public NPCSkinType SkinType
리턴 NPCSkinType

alertDecrement 공개적으로 프로퍼티

public float alertDecrement
리턴 float

alertLevel 보호되어 있는 프로퍼티

protected float alertLevel
리턴 float

alertTexture 공개적으로 프로퍼티

public GameObject alertTexture
리턴 GameObject

alertThreshold 보호되어 있는 프로퍼티

protected float alertThreshold
리턴 float

alerted 공개적으로 프로퍼티

public bool alerted
리턴 bool

bopperAlertSounds 공개적으로 프로퍼티

public AudioClip[] bopperAlertSounds
리턴 AudioClip[]

bopperCuriousSounds 공개적으로 프로퍼티

public AudioClip[] bopperCuriousSounds
리턴 AudioClip[]

bopperEaten 공개적으로 프로퍼티

public AudioClip bopperEaten
리턴 AudioClip

bopperIdleSounds 공개적으로 프로퍼티

public AudioClip[] bopperIdleSounds
리턴 AudioClip[]

bopperPanicSounds 공개적으로 프로퍼티

public AudioClip[] bopperPanicSounds
리턴 AudioClip[]

detectLevel 공개적으로 프로퍼티

public float detectLevel
리턴 float

emptyAlert 공개적으로 프로퍼티

public Texture2D emptyAlert
리턴 Texture2D

enteredMap 보호되어 있는 프로퍼티

protected bool enteredMap
리턴 bool

fullAlert 공개적으로 프로퍼티

public Texture2D fullAlert
리턴 Texture2D

grabbed 공개적으로 프로퍼티

public bool grabbed
리턴 bool

hearingAlertMultiplier 공개적으로 프로퍼티

public float hearingAlertMultiplier
리턴 float

hearingRadiusLevelMultiplier 공개적으로 프로퍼티

public float hearingRadiusLevelMultiplier
리턴 float

hippieAlertSounds 공개적으로 프로퍼티

public AudioClip[] hippieAlertSounds
리턴 AudioClip[]

hippieCuriousSounds 공개적으로 프로퍼티

public AudioClip[] hippieCuriousSounds
리턴 AudioClip[]

hippieEaten 공개적으로 프로퍼티

public AudioClip hippieEaten
리턴 AudioClip

hippieIdleSounds 공개적으로 프로퍼티

public AudioClip[] hippieIdleSounds
리턴 AudioClip[]

hippiePanicSounds 공개적으로 프로퍼티

public AudioClip[] hippiePanicSounds
리턴 AudioClip[]

hottieAlertSounds 공개적으로 프로퍼티

public AudioClip[] hottieAlertSounds
리턴 AudioClip[]

hottieCuriousSounds 공개적으로 프로퍼티

public AudioClip[] hottieCuriousSounds
리턴 AudioClip[]

hottieEaten 공개적으로 프로퍼티

public AudioClip hottieEaten
리턴 AudioClip

hottieIdleSounds 공개적으로 프로퍼티

public AudioClip[] hottieIdleSounds
리턴 AudioClip[]

hottiePanicSounds 공개적으로 프로퍼티

public AudioClip[] hottiePanicSounds
리턴 AudioClip[]

idleCounter 보호되어 있는 프로퍼티

protected float idleCounter
리턴 float

idlePlayTime 보호되어 있는 프로퍼티

protected float idlePlayTime
리턴 float

isCritterType 공개적으로 프로퍼티

public bool isCritterType
리턴 bool

killSelf 공개적으로 프로퍼티

public bool killSelf
리턴 bool

lastDirectionWasRight 보호되어 있는 프로퍼티

protected bool lastDirectionWasRight
리턴 bool

lastLure 보호되어 있는 프로퍼티

protected Lure lastLure
리턴 Lure

lureCooldownSeconds 공개적으로 프로퍼티

public float lureCooldownSeconds
리턴 float

lurePower 공개적으로 프로퍼티

public float lurePower
리턴 float

lureTag 공개적으로 프로퍼티

public string lureTag
리턴 string

lureTexture 공개적으로 프로퍼티

public GameObject lureTexture
리턴 GameObject

lured 공개적으로 프로퍼티

public bool lured
리턴 bool

luredTimeLeft 보호되어 있는 프로퍼티

protected float luredTimeLeft
리턴 float

marked 보호되어 있는 프로퍼티

protected bool marked
리턴 bool

moveDir 보호되어 있는 프로퍼티

protected Vector2 moveDir
리턴 Vector2

movePath 보호되어 있는 프로퍼티

protected SubpathScript movePath
리턴 SubpathScript

mowerAlertSounds 공개적으로 프로퍼티

public AudioClip[] mowerAlertSounds
리턴 AudioClip[]

mowerCuriousSounds 공개적으로 프로퍼티

public AudioClip[] mowerCuriousSounds
리턴 AudioClip[]

mowerEaten 공개적으로 프로퍼티

public AudioClip mowerEaten
리턴 AudioClip

mowerIdleSounds 공개적으로 프로퍼티

public AudioClip[] mowerIdleSounds
리턴 AudioClip[]

mowerPanicSounds 공개적으로 프로퍼티

public AudioClip[] mowerPanicSounds
리턴 AudioClip[]

mowing 공개적으로 프로퍼티

public AudioClip mowing
리턴 AudioClip

nearWall 보호되어 있는 프로퍼티

protected bool nearWall
리턴 bool

nextPath 보호되어 있는 프로퍼티

protected GameObject nextPath
리턴 GameObject

npcDir 보호되어 있는 프로퍼티

protected Vector3 npcDir
리턴 Vector3

npcTag 공개적으로 프로퍼티

public string npcTag
리턴 string

numPathStart 공개적으로 프로퍼티

public int numPathStart
리턴 int

numStationaryStart 공개적으로 프로퍼티

public int numStationaryStart
리턴 int

oldmanAlertSounds 공개적으로 프로퍼티

public AudioClip[] oldmanAlertSounds
리턴 AudioClip[]

oldmanCuriousSounds 공개적으로 프로퍼티

public AudioClip[] oldmanCuriousSounds
리턴 AudioClip[]

oldmanEaten 공개적으로 프로퍼티

public AudioClip oldmanEaten
리턴 AudioClip

oldmanIdleSounds 공개적으로 프로퍼티

public AudioClip[] oldmanIdleSounds
리턴 AudioClip[]

oldmanPanicSounds 공개적으로 프로퍼티

public AudioClip[] oldmanPanicSounds
리턴 AudioClip[]

panicCooldownSeconds 공개적으로 프로퍼티

public float panicCooldownSeconds
리턴 float

panicTexture 공개적으로 프로퍼티

public GameObject panicTexture
리턴 GameObject

panicThreshold 보호되어 있는 프로퍼티

protected float panicThreshold
리턴 float

panicked 공개적으로 프로퍼티

public bool panicked
리턴 bool

panickedPos 보호되어 있는 프로퍼티

protected Vector3 panickedPos
리턴 Vector3

playAlert 보호되어 있는 프로퍼티

protected bool playAlert
리턴 bool

playCurious 보호되어 있는 프로퍼티

protected bool playCurious
리턴 bool

playIdle 보호되어 있는 프로퍼티

protected bool playIdle
리턴 bool

player 보호되어 있는 프로퍼티

protected GameObject player
리턴 GameObject

playerInRange 보호되어 있는 프로퍼티

protected bool playerInRange
리턴 bool

previousAlertLevel 보호되어 있는 프로퍼티

protected float previousAlertLevel
리턴 float

scared 공개적으로 프로퍼티

public bool scared
리턴 bool

scaredByAxeman 공개적으로 프로퍼티

public bool scaredByAxeman
리턴 bool

scaredCooldownSeconds 공개적으로 프로퍼티

public float scaredCooldownSeconds
리턴 float

scaredTexture 공개적으로 프로퍼티

public GameObject scaredTexture
리턴 GameObject

scaredTimeLeft 보호되어 있는 프로퍼티

protected float scaredTimeLeft
리턴 float

sightAlertMultiplier 공개적으로 프로퍼티

public float sightAlertMultiplier
리턴 float

spawnTag 공개적으로 프로퍼티

public string spawnTag
리턴 string

speed 공개적으로 프로퍼티

public float speed
리턴 float

visionAngleOffset 보호되어 있는 프로퍼티

protected float visionAngleOffset
리턴 float

visionAngleSize 공개적으로 프로퍼티

public float visionAngleSize
리턴 float

visionDistance 공개적으로 프로퍼티

public float visionDistance
리턴 float

walkingKey 보호되어 있는 프로퍼티

protected string walkingKey
리턴 string

xScale 보호되어 있는 프로퍼티

protected float xScale
리턴 float