C# Class NPCScript

Inheritance: MonoBehaviour
Mostra file Open project: NotProGamer/emtojere Class Usage Examples

Public Properties

Property Type Description
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

Public Methods

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

Private Methods

Method Description
FixedUpdate ( ) : void
Flip ( ) : void
FreezeVelocity ( ) : void
OnPause ( ) : void
OnResume ( ) : void
OnTriggerEnter2D ( Collider2D other ) : void
Start ( ) : void
UnFreezeVelocity ( ) : void
Update ( ) : void

Method Details

Alert() public method

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

EvacuateHouse() public method

public EvacuateHouse ( ) : void
return void

GetAlertFloor() public method

public GetAlertFloor ( ) : int
return int

GetCurrentFloor() public method

public GetCurrentFloor ( ) : int
return int

GetFearRating() public method

public GetFearRating ( ) : float
return float

GetTarget() public method

public GetTarget ( ) : Vector3
return Vector3

IsFleeing() public method

public IsFleeing ( ) : bool
return bool

IsLured() public method

public IsLured ( ) : bool
return bool

IsScared() public method

public IsScared ( ) : bool
return bool

SetDirection() public method

public SetDirection ( ) : void
return void

Teleport() public method

public Teleport ( Vector3 destination, int newFloor ) : void
destination Vector3
newFloor int
return void

Property Details

animator public_oe property

public Animator animator
return Animator

currentFearRating public_oe property

public float currentFearRating
return float

fadeTime public_oe property

public float fadeTime
return float

fearImmunityMax public_oe property

public float fearImmunityMax
return float

m_groundCheck public_oe property

public Transform m_groundCheck
return Transform

m_grounded public_oe property

public bool m_grounded
return bool

maxFearRating public_oe property

public float maxFearRating
return float

maxSpeed public_oe property

public float maxSpeed
return float

reactionDelay public_oe property

public float reactionDelay
return float

scareRating public_oe property

public float scareRating
return float

sprite public_oe property

public SpriteRenderer sprite
return SpriteRenderer

whatIsGround public_oe property

public LayerMask whatIsGround
return LayerMask