Driving UI 2
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user