C# Class CheckPoint, Unity-CheckPoints

Inheritance: MonoBehaviour
Afficher le fichier Open project: santiandrade/Unity-CheckPoints Class Usage Examples

Méthodes publiques

Свойство Type Description
Activated bool
CheckPointsList GameObject[]

Méthodes publiques

Méthode Description
GetActiveCheckPointPosition ( ) : Vector3

Get position of the last activated checkpoint

Private Methods

Méthode Description
ActivateCheckPoint ( ) : void

Activate the checkpoint

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

Method Details

GetActiveCheckPointPosition() public static méthode

Get position of the last activated checkpoint
public static GetActiveCheckPointPosition ( ) : Vector3
Résultat Vector3

Property Details

Activated public_oe property

Indicate if the checkpoint is activated
public bool Activated
Résultat bool

CheckPointsList public_oe static_oe property

List with all checkpoints objects in the scene
public static GameObject[] CheckPointsList
Résultat GameObject[]