checkpiint better
This commit is contained in:
@@ -128,7 +128,7 @@ public class PlayerController : MonoBehaviour
|
|||||||
float checkpintDistance = distanceToCheckpoint(currentCheckpoint);
|
float checkpintDistance = distanceToCheckpoint(currentCheckpoint);
|
||||||
|
|
||||||
|
|
||||||
if (checkpintDistance < 0.1f)
|
if (checkpintDistance < 0.2f)
|
||||||
{
|
{
|
||||||
checkpointsCollected += 1;
|
checkpointsCollected += 1;
|
||||||
currentCheckpoint.GetComponent<Checkpoint>().isVisible = false;
|
currentCheckpoint.GetComponent<Checkpoint>().isVisible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user