From ea5a6a94e5f60351bde4ec7a2a55e22df298204b Mon Sep 17 00:00:00 2001 From: Jenny Crowe Date: Sun, 20 Feb 2022 04:59:36 -0700 Subject: [PATCH] Spaceball: Proper cap for end value of camera zoom --- Assets/Scripts/Games/Spaceball/Spaceball.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Games/Spaceball/Spaceball.cs b/Assets/Scripts/Games/Spaceball/Spaceball.cs index 18a1e9e7..677ba0d5 100644 --- a/Assets/Scripts/Games/Spaceball/Spaceball.cs +++ b/Assets/Scripts/Games/Spaceball/Spaceball.cs @@ -85,9 +85,9 @@ namespace RhythmHeavenMania.Games.Spaceball if (normalizedBeat >= 0) { - if (normalizedBeat > Minigame.EndTime()) + if (normalizedBeat > 1) { - // lastCamDistance = GameCamera.instance.camera.transform.localPosition.z; + GameCamera.instance.camera.transform.localPosition = new Vector3(0, 0, currentZoomCamDistance); } else {