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

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 58f7e79a87c79824597746e8c1bfe400
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f58d25b9e504a4f41ab4a71cf87c1845
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

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;
}