mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 09:35:11 +00:00
Merge pull request #847 from RHeavenStudio/cherry-pick-release_1_patches-be289eb48c079f8b114e1fc0d157cc715d8f207b
Fix Operation Order Issue in Mr Upbeat
This commit is contained in:
commit
214ca2f3e4
1 changed files with 11 additions and 7 deletions
|
@ -254,16 +254,20 @@ namespace HeavenStudio.Games
|
|||
man.RecursiveBlipping(startBlippingBeat);
|
||||
startBlippingBeat = double.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (metronomeBeat != double.MaxValue)
|
||||
void LateUpdate()
|
||||
{
|
||||
if (conductor.isPlaying && !conductor.isPaused && metronomeBeat != double.MaxValue)
|
||||
{
|
||||
double songPos = conductor.songPositionInBeatsAsDouble;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Ding(double beat, bool applause, bool stopBlipping, bool playDing)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue