using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { public int lapAmount; public GameObject[] checkpoints; public GameObject[] players; int currentLap = 1; void Start() { } // Update is called once per frame void Update() { foreach (GameObject player in players) { } } }