From bfdd77beb5587613285ad30c85a07504261fcfab Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Wed, 9 Aug 2023 01:22:58 +0200 Subject: [PATCH] camera tweak --- Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs b/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs index 8c31cc39d..ede601050 100644 --- a/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs +++ b/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs @@ -189,15 +189,15 @@ namespace HeavenStudio.Games public void ZoomOut(double beat, float length, int timeMode, int hours, int minutes) { - length = Mathf.Max(4, length); + length = Mathf.Max(3, length); zoomOutStartBeat = beat; zoomOutLength = length; backgroundHandler.SetFade(beat, 0.25f, true, (TimeMode)timeMode, hours, minutes); BeatAction.New(instance.gameObject, new List() { - new BeatAction.Action(beat + length - 2, delegate + new BeatAction.Action(beat + length - 1, delegate { - backgroundHandler.SetFade(beat + length - 2, 0.25f, false, (TimeMode)timeMode, hours, minutes); + backgroundHandler.SetFade(beat + length - 1, 0.25f, false, (TimeMode)timeMode, hours, minutes); }) }); CameraUpdate(); @@ -620,7 +620,7 @@ namespace HeavenStudio.Games float newZ = 0f; float normalizedZoomFirst = cond.GetPositionFromBeat(zoomOutStartBeat, 2); - float normalizedZoomLast = cond.GetPositionFromBeat(zoomOutStartBeat + zoomOutLength - 2, 2); + float normalizedZoomLast = cond.GetPositionFromBeat(zoomOutStartBeat + zoomOutLength - 1, 1); if (normalizedZoomFirst > 1) {