Property | Type | Description | |
---|---|---|---|
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 |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
NPCHandleSeeingPlayer ( ) : bool | ||
NPCOnDestroy ( ) : void | ||
OnCollisionEnter2D ( Collision2D collision ) : void | ||
OnCollisionExit2D ( Collision2D collision ) : void | ||
OnTriggerEnter2D ( |
||
OnTriggerExit2D ( |
||
OnTriggerStay2D ( |
||
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 |
Method | Description | |
---|---|---|
GetClosestPlayer ( Vector3 position ) : GameObject | ||
increaseAlertLevel ( float sensitivity ) : void | ||
testDirectionChange ( float biasTan, Vector3 low, Vector3 middle, Vector3 high ) : void |
protected OnCollisionEnter2D ( Collision2D collision ) : void | ||
collision | Collision2D | |
return | void |
protected OnCollisionExit2D ( Collision2D collision ) : void | ||
collision | Collision2D | |
return | void |
protected OnTriggerEnter2D ( |
||
other | ||
return | void |
protected OnTriggerExit2D ( |
||
other | ||
return | void |
protected OnTriggerStay2D ( |
||
other | ||
return | void |
public abilityPlacedListener ( Message message ) : void | ||
message | Message | |
return | void |
protected avoid ( Vector3 currentNPCDirection ) : Vector3 | ||
currentNPCDirection | Vector3 | |
return | Vector3 |
protected broadcastAlertLevelChanged ( AlertLevelType type ) : void | ||
type | AlertLevelType | |
return | void |
protected createTempGameObject ( Vector3 pos, Transform parent ) : GameObject | ||
pos | Vector3 | |
parent | Transform | |
return | GameObject |
protected determineDirectionChange ( Vector3 npcPosition, Vector3 newPosition ) : void | ||
npcPosition | Vector3 | |
newPosition | Vector3 | |
return | void |
public eatenListener ( Message message ) : void | ||
message | Message | |
return | void |
public grabbedListener ( Message message ) : void | ||
message | Message | |
return | void |
protected ignoreBorder ( bool ignore, Collider2D other ) : void | ||
ignore | bool | |
other | Collider2D | |
return | void |
protected lure ( Vector3 lurePosition ) : void | ||
lurePosition | Vector3 | |
return | void |
public lureEnterListener ( Message message ) : void | ||
message | Message | |
return | void |
public lureReleaseListener ( Message message ) : void | ||
message | Message | |
return | void |
public markedBountyListener ( Message message ) : void | ||
message | Message | |
return | void |
public releasedListener ( Message message ) : void | ||
message | Message | |
return | void |
protected scare ( Vector3 scaredPosition ) : void | ||
scaredPosition | Vector3 | |
return | void |
protected setAnimatorInteger ( int animation ) : void | ||
animation | int | |
return | void |
protected setAnimatorInteger ( string key, int animation ) : void | ||
key | string | |
animation | int | |
return | void |
protected setNPCDirection ( Vector3 direction ) : void | ||
direction | Vector3 | |
return | void |
public trapEnterListener ( Message message ) : void | ||
message | Message | |
return | void |
public trapReleaseListener ( Message message ) : void | ||
message | Message | |
return | void |