From dbfbe1b926c80b3331455704747a2d35158d45a1 Mon Sep 17 00:00:00 2001 From: magn9775 Date: Fri, 26 Apr 2024 10:24:18 +0200 Subject: [PATCH] win --- ...pleNaturePack_2020.3_HDRP_v1.24.unitypackage.meta | 7 +++++++ ...mpleNaturePack_2020.3_URP_v1.24.unitypackage.meta | 7 +++++++ Assets/Scripts/WinScript.cs | 12 ++---------- 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_HDRP_v1.24.unitypackage.meta create mode 100644 Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_URP_v1.24.unitypackage.meta diff --git a/Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_HDRP_v1.24.unitypackage.meta b/Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_HDRP_v1.24.unitypackage.meta new file mode 100644 index 0000000..2f7eb2e --- /dev/null +++ b/Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_HDRP_v1.24.unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 58f7e79a87c79824597746e8c1bfe400 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_URP_v1.24.unitypackage.meta b/Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_URP_v1.24.unitypackage.meta new file mode 100644 index 0000000..73c9a86 --- /dev/null +++ b/Assets/Imported Assets/SimpleNaturePack/SimpleNaturePack_2020.3_URP_v1.24.unitypackage.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f58d25b9e504a4f41ab4a71cf87c1845 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/WinScript.cs b/Assets/Scripts/WinScript.cs index 0bc5972..c03da34 100644 --- a/Assets/Scripts/WinScript.cs +++ b/Assets/Scripts/WinScript.cs @@ -10,16 +10,8 @@ public class WinScript : MonoBehaviour void Start() { - leaderboard = GameObject.Find("GameManager").GetComponent().PlayerFinished; - carColor = GameObject.Find("Car Data").GetComponent().carColor; - - foreach (GameObject car in Cars) - { - if (car.name == carType) - { - replaceCar(car, carColor); - } - } + leaderboard = GameObject.Find("GameManager").GetComponent().playersFinished; + time = GameObject.Find("GameManager").GetComponent().playerTimes; }