Driving UI 2

This commit is contained in:
2024-04-26 13:07:04 +02:00
parent 2fb03efc2a
commit 2fe54fe26e
6 changed files with 14 additions and 26 deletions

View File

@@ -8,7 +8,7 @@ public class WinScript : MonoBehaviour
public TextMeshProUGUI MainText;
public TextMeshProUGUI MainText2;
public List<string> leaderboard;
public List<string> time;
public string[] time;
public GameObject[] Garages;
private GameObject currentGarage;
@@ -20,7 +20,7 @@ public class WinScript : MonoBehaviour
carGarage.SetActive(false);
}
leaderboard = GameObject.Find("GameManager").GetComponent<GameManager>().playersFinished;
time = GameObject.Find("GameManager").GetComponent<GameManager>().playerTimesSTR;
time = GameObject.Find("GameManager").GetComponent<GameManager>().playerTimesStr;
if (leaderboard[0].Contains("Player")){
Garages[0].SetActive(true);
}else{