From 3fb6258813a9f78db9610f9e2b2d95e33100dcb0 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Sun, 5 Feb 2023 00:14:32 +0100 Subject: [PATCH] Fixed camera staying zoomed out on game switch (#256) * Update Ringside.cs * make unwanted ringside inputs score misses update game icons * Camera doesn't zoom out when it shouldn't --------- Co-authored-by: minenice55 --- Assets/Scripts/Games/Ringside/Ringside.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Scripts/Games/Ringside/Ringside.cs b/Assets/Scripts/Games/Ringside/Ringside.cs index 7d7d0a1f..32a6cdf9 100644 --- a/Assets/Scripts/Games/Ringside/Ringside.cs +++ b/Assets/Scripts/Games/Ringside/Ringside.cs @@ -158,6 +158,14 @@ namespace HeavenStudio.Games if (queuedPoses.Count > 0) queuedPoses.Clear(); } + void OnGameSwitch(float beat) + { + shouldNotInput = false; + shouldBop = true; + lastCamPos = new Vector3(0, 0, -10); + currentCamPos = new Vector3(0, 0, -10); + } + public override void OnTimeChange() { UpdateCameraZoom();