C# 클래스 NPCScript

상속: MonoBehaviour
파일 보기 프로젝트 열기: NotProGamer/emtojere 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
animator Animator
currentFearRating float
fadeTime float
fearImmunityMax float
m_groundCheck Transform
m_grounded bool
maxFearRating float
maxSpeed float
reactionDelay float
scareRating float
sprite SpriteRenderer
whatIsGround LayerMask

공개 메소드들

메소드 설명
Alert ( Vector3 source, bool lure, int floor, bool useDelay = true ) : void
EvacuateHouse ( ) : void
GetAlertFloor ( ) : int
GetCurrentFloor ( ) : int
GetFearRating ( ) : float
GetTarget ( ) : Vector3
IsFleeing ( ) : bool
IsLured ( ) : bool
IsScared ( ) : bool
SetDirection ( ) : void
Teleport ( Vector3 destination, int newFloor ) : void

비공개 메소드들

메소드 설명
FixedUpdate ( ) : void
Flip ( ) : void
FreezeVelocity ( ) : void
OnPause ( ) : void
OnResume ( ) : void
OnTriggerEnter2D ( Collider2D other ) : void
Start ( ) : void
UnFreezeVelocity ( ) : void
Update ( ) : void

메소드 상세

Alert() 공개 메소드

public Alert ( Vector3 source, bool lure, int floor, bool useDelay = true ) : void
source Vector3
lure bool
floor int
useDelay bool
리턴 void

EvacuateHouse() 공개 메소드

public EvacuateHouse ( ) : void
리턴 void

GetAlertFloor() 공개 메소드

public GetAlertFloor ( ) : int
리턴 int

GetCurrentFloor() 공개 메소드

public GetCurrentFloor ( ) : int
리턴 int

GetFearRating() 공개 메소드

public GetFearRating ( ) : float
리턴 float

GetTarget() 공개 메소드

public GetTarget ( ) : Vector3
리턴 Vector3

IsFleeing() 공개 메소드

public IsFleeing ( ) : bool
리턴 bool

IsLured() 공개 메소드

public IsLured ( ) : bool
리턴 bool

IsScared() 공개 메소드

public IsScared ( ) : bool
리턴 bool

SetDirection() 공개 메소드

public SetDirection ( ) : void
리턴 void

Teleport() 공개 메소드

public Teleport ( Vector3 destination, int newFloor ) : void
destination Vector3
newFloor int
리턴 void

프로퍼티 상세

animator 공개적으로 프로퍼티

public Animator animator
리턴 Animator

currentFearRating 공개적으로 프로퍼티

public float currentFearRating
리턴 float

fadeTime 공개적으로 프로퍼티

public float fadeTime
리턴 float

fearImmunityMax 공개적으로 프로퍼티

public float fearImmunityMax
리턴 float

m_groundCheck 공개적으로 프로퍼티

public Transform m_groundCheck
리턴 Transform

m_grounded 공개적으로 프로퍼티

public bool m_grounded
리턴 bool

maxFearRating 공개적으로 프로퍼티

public float maxFearRating
리턴 float

maxSpeed 공개적으로 프로퍼티

public float maxSpeed
리턴 float

reactionDelay 공개적으로 프로퍼티

public float reactionDelay
리턴 float

scareRating 공개적으로 프로퍼티

public float scareRating
리턴 float

sprite 공개적으로 프로퍼티

public SpriteRenderer sprite
리턴 SpriteRenderer

whatIsGround 공개적으로 프로퍼티

public LayerMask whatIsGround
리턴 LayerMask