From d8dd8b94bcf920b1b81ed862004eff6392dae5be Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Sat, 20 May 2023 17:41:42 +0200 Subject: [PATCH] See saw doesn't grab events before the playback/gameswitch anymore (#428) --- Assets/Scripts/Games/SeeSaw/SeeSaw.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Assets/Scripts/Games/SeeSaw/SeeSaw.cs b/Assets/Scripts/Games/SeeSaw/SeeSaw.cs index 1fafac2f..32075adc 100644 --- a/Assets/Scripts/Games/SeeSaw/SeeSaw.cs +++ b/Assets/Scripts/Games/SeeSaw/SeeSaw.cs @@ -228,7 +228,7 @@ namespace HeavenStudio.Games List tempEvents = new List(); for (int i = 0; i < jumpEvents.Count; i++) { - if (jumpEvents[i].beat + jumpEvents[i].beat >= Conductor.instance.songPositionInBeats) + if (jumpEvents[i].beat >= Conductor.instance.songPositionInBeats) { tempEvents.Add(jumpEvents[i]); } @@ -252,10 +252,6 @@ namespace HeavenStudio.Games } tempEvents = tempEvents.Except(tempEvents2).ToList(); allJumpEvents = tempEvents; - foreach (var jump in allJumpEvents) - { - Debug.Log(jump.beat); - } } private void Update()