C# Class CheckPoint, Unity-CheckPoints

Inheritance: MonoBehaviour
Exibir arquivo 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_oe property

Indicate if the checkpoint is activated
public bool Activated
return bool

CheckPointsList public_oe static_oe property

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