From bfa42a83c3f89fb6cd5638c0c23fbc5cf1281c9b Mon Sep 17 00:00:00 2001 From: Ciakon Date: Fri, 26 Apr 2024 12:32:39 +0200 Subject: [PATCH 1/2] lowered time for cars --- Assets/Scenes/CityRacetrack.unity | 16 ++++++++-------- Assets/Scenes/ForestRacetrack.unity | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Assets/Scenes/CityRacetrack.unity b/Assets/Scenes/CityRacetrack.unity index 648e1e3..bc74e7a 100644 --- a/Assets/Scenes/CityRacetrack.unity +++ b/Assets/Scenes/CityRacetrack.unity @@ -19157,7 +19157,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 714326685143289106, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 714326685143289106, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -19269,7 +19269,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1738365250199652202, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 1738365250199652202, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -19473,7 +19473,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3317544572197634774, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 3317544572197634774, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -19645,7 +19645,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3804978923256916348, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 3804978923256916348, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -19737,7 +19737,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4525420008190256607, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 4525420008190256607, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -20017,7 +20017,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 5733087808321881938, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 5733087808321881938, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -20509,7 +20509,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8903063341209168209, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 8903063341209168209, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size @@ -20617,7 +20617,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 9215282754755187610, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 9215282754755187610, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.size diff --git a/Assets/Scenes/ForestRacetrack.unity b/Assets/Scenes/ForestRacetrack.unity index 5ef6b58..47701a2 100644 --- a/Assets/Scenes/ForestRacetrack.unity +++ b/Assets/Scenes/ForestRacetrack.unity @@ -3118,7 +3118,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 714326685143289106, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 714326685143289106, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -3198,7 +3198,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1738365250199652202, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 1738365250199652202, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -3350,7 +3350,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3317544572197634774, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 3317544572197634774, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -3502,7 +3502,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3804978923256916348, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 3804978923256916348, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -3578,7 +3578,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4525420008190256607, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 4525420008190256607, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -3798,7 +3798,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 5733087808321881938, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 5733087808321881938, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -4194,7 +4194,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8903063341209168209, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 8903063341209168209, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] @@ -4270,7 +4270,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 9215282754755187610, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: maxStepsPerCheckpoint - value: 2000 + value: 1000 objectReference: {fileID: 0} - target: {fileID: 9215282754755187610, guid: 7a3d78e18ac1cd7458d86f15c7aedc7a, type: 3} propertyPath: checkpoints.Array.data[0] From 8405f137d65e9ef158a77e8a977455786025535c Mon Sep 17 00:00:00 2001 From: Ciakon Date: Fri, 26 Apr 2024 12:33:18 +0200 Subject: [PATCH 2/2] checkpiint better --- Assets/Scripts/PlayerController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 6ecce39..c0bfde9 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -128,7 +128,7 @@ public class PlayerController : MonoBehaviour float checkpintDistance = distanceToCheckpoint(currentCheckpoint); - if (checkpintDistance < 0.1f) + if (checkpintDistance < 0.2f) { checkpointsCollected += 1; currentCheckpoint.GetComponent().isVisible = false;