See saw doesn't grab events before the playback/gameswitch anymore (#428)

This commit is contained in:
Rapandrasmus 2023-05-20 17:41:42 +02:00 committed by GitHub
parent e52cd0b2e9
commit d8dd8b94bc

View file

@ -228,7 +228,7 @@ namespace HeavenStudio.Games
List<DynamicBeatmap.DynamicEntity> tempEvents = new List<DynamicBeatmap.DynamicEntity>();
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()