C# Class CheckPoint, Unity-CheckPoints

Inheritance: MonoBehaviour
Show file Open project: santiandrade/Unity-CheckPoints Class Usage Examples

Public Properties

Property Type Description
Activated bool
CheckPointsList GameObject[]

Public Methods

Method Description
GetActiveCheckPointPosition ( ) : Vector3

Get position of the last activated checkpoint

Private Methods

Method Description
ActivateCheckPoint ( ) : void

Activate the checkpoint

OnTriggerEnter ( Collider other ) : void
Start ( ) : void

Method Details

GetActiveCheckPointPosition() public static method

Get position of the last activated checkpoint
public static GetActiveCheckPointPosition ( ) : Vector3
return Vector3

Property Details

Activated public property

Indicate if the checkpoint is activated
public bool Activated
return bool

CheckPointsList public static property

List with all checkpoints objects in the scene
public static GameObject[] CheckPointsList
return GameObject[]