Advertisement
rdgorodrigo

Untitled

Aug 12th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Laps : MonoBehaviour {
  5.  
  6. public Transform[] checkPointArray;
  7. public Transform[] checkpointA;
  8. public int currentCheckpoint = 0;
  9. public int currentLap = 0;
  10. public Vector3 startPos;
  11. public int Lap;
  12.  
  13. void Start ()
  14. {
  15. startPos = transform.position;
  16. currentCheckpoint = 0;
  17. currentLap = 0;
  18.  
  19. }
  20.  
  21. void Update ()
  22. {
  23. Lap = currentLap;
  24. checkpointA = checkPointArray;
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement