This commit is contained in:
magn9775
2024-04-26 10:24:18 +02:00
parent b50c0d52bf
commit dbfbe1b926
3 changed files with 16 additions and 10 deletions

View File

@@ -10,16 +10,8 @@ public class WinScript : MonoBehaviour
void Start()
{
leaderboard = GameObject.Find("GameManager").GetComponent<GameManager>().PlayerFinished;
carColor = GameObject.Find("Car Data").GetComponent<CarData>().carColor;
foreach (GameObject car in Cars)
{
if (car.name == carType)
{
replaceCar(car, carColor);
}
}
leaderboard = GameObject.Find("GameManager").GetComponent<GameManager>().playersFinished;
time = GameObject.Find("GameManager").GetComponent<GameManager>().playerTimes;
}