Update MrUpbeat.cs (#846)
This commit is contained in:
parent
c9f6b3edaf
commit
be289eb48c
|
@ -254,16 +254,20 @@ namespace HeavenStudio.Games
|
||||||
man.RecursiveBlipping(startBlippingBeat);
|
man.RecursiveBlipping(startBlippingBeat);
|
||||||
startBlippingBeat = double.MaxValue;
|
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
|
currentMetronomeDir = songPos >= metronomeBeat && songPos <= metronomeBeat + 1
|
||||||
? (stepIterate % 2 == 0) ? "Right" : "Left"
|
? (stepIterate % 2 == 0) ? "Right" : "Left"
|
||||||
: (stepIterate % 2 == 1) ? "Right" : "Left";
|
: (stepIterate % 2 == 1) ? "Right" : "Left";
|
||||||
metronomeAnim.DoScaledAnimation("MetronomeGo" + currentMetronomeDir, metronomeBeat, 1, clamp: true, ignoreSwing: false);
|
metronomeAnim.DoScaledAnimation("MetronomeGo" + currentMetronomeDir, metronomeBeat, 1, clamp: true, ignoreSwing: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void Ding(double beat, bool applause, bool stopBlipping, bool playDing)
|
public void Ding(double beat, bool applause, bool stopBlipping, bool playDing)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue