FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
CheckPoint Class Reference

A checkpoint that will constantly check distance to player and if close enough add itself as latest CheckPointReached in CheckPointManager class. More...

Inheritance diagram for CheckPoint:

Private Member Functions

void Start ()
 Gets player transform from static field in Movement class and sets player position to be the latest checkpoint reached.
 
void Update ()
 Checks if the player is close enough to trigger checkpoint reached; sets it's position to latest and destroys itself

 

Detailed Description

A checkpoint that will constantly check distance to player and if close enough add itself as latest CheckPointReached in CheckPointManager class.

Definition at line 7 of file CheckPoint.cs.


The documentation for this class was generated from the following file: