C# Class PersonSight, SOFTENG-306-PROJECT-2

Inheritance: MonoBehaviour
Show file Open project: gdsl/SOFTENG-306-PROJECT-2 Class Usage Examples

Public Properties

Property Type Description
checkVision bool
fieldOfViewAngle float
santaInSight bool

Public Methods

Method Description
Awake ( ) : void
GetRayPos1 ( ) : Vector3
GetRayPos2 ( ) : Vector3
OnTriggerExit ( Collider other ) : void
OnTriggerStay ( Collider other ) : void
Update ( ) : void

Private Methods

Method Description
PersonSeen ( ) : IEnumerator

Method Details

Awake() public method

public Awake ( ) : void
return void

GetRayPos1() public method

public GetRayPos1 ( ) : Vector3
return Vector3

GetRayPos2() public method

public GetRayPos2 ( ) : Vector3
return Vector3

OnTriggerExit() public method

public OnTriggerExit ( Collider other ) : void
other Collider
return void

OnTriggerStay() public method

public OnTriggerStay ( Collider other ) : void
other Collider
return void

Update() public method

public Update ( ) : void
return void

Property Details

checkVision public property

public bool checkVision
return bool

fieldOfViewAngle public property

public float fieldOfViewAngle
return float

santaInSight public property

public bool santaInSight
return bool