Update MrUpbeat.cs (#846)

This commit is contained in:
minenice55 2024-04-08 22:54:25 -04:00 committed by GitHub
parent c9f6b3edaf
commit be289eb48c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -254,14 +254,18 @@ namespace HeavenStudio.Games
man.RecursiveBlipping(startBlippingBeat); man.RecursiveBlipping(startBlippingBeat);
startBlippingBeat = double.MaxValue; startBlippingBeat = double.MaxValue;
} }
}
}
if (metronomeBeat != double.MaxValue) void LateUpdate()
{ {
currentMetronomeDir = songPos >= metronomeBeat && songPos <= metronomeBeat + 1 if (conductor.isPlaying && !conductor.isPaused && metronomeBeat != double.MaxValue)
? (stepIterate % 2 == 0) ? "Right" : "Left" {
: (stepIterate % 2 == 1) ? "Right" : "Left"; double songPos = conductor.songPositionInBeatsAsDouble;
metronomeAnim.DoScaledAnimation("MetronomeGo" + currentMetronomeDir, metronomeBeat, 1, clamp: true, ignoreSwing: false); currentMetronomeDir = songPos >= metronomeBeat && songPos <= metronomeBeat + 1
} ? (stepIterate % 2 == 0) ? "Right" : "Left"
: (stepIterate % 2 == 1) ? "Right" : "Left";
metronomeAnim.DoScaledAnimation("MetronomeGo" + currentMetronomeDir, metronomeBeat, 1, clamp: true, ignoreSwing: false);
} }
} }