Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Laps : MonoBehaviour {
- public Transform[] checkPointArray;
- public Transform[] checkpointA;
- public int currentCheckpoint = 0;
- public int currentLap = 0;
- public Vector3 startPos;
- public int Lap;
- void Start ()
- {
- startPos = transform.position;
- currentCheckpoint = 0;
- currentLap = 0;
- }
- void Update ()
- {
- Lap = currentLap;
- checkpointA = checkPointArray;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement