mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
Update MrUpbeat.cs (#846)
This commit is contained in:
parent
04ff7794e2
commit
59562b7fd9
1 changed files with 11 additions and 7 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue