mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:57:37 +02:00
BTSDS: Piano notes will now stop properly even if the game switches during them.
This commit is contained in:
@ -15,6 +15,9 @@ namespace RhythmHeavenMania.Util
|
||||
public double scheduledTime;
|
||||
|
||||
public bool looping;
|
||||
public float loopEndBeat = -1;
|
||||
public float fadeTime;
|
||||
int loopIndex = 0;
|
||||
|
||||
private AudioSource audioSource;
|
||||
|
||||
@ -73,6 +76,18 @@ namespace RhythmHeavenMania.Util
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (loopIndex < 1)
|
||||
{
|
||||
if (looping && loopEndBeat != -1)
|
||||
{
|
||||
if (Conductor.instance.songPositionInBeats > loopEndBeat)
|
||||
{
|
||||
KillLoop(fadeTime);
|
||||
loopIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator NotRelyOnBeatSound()
|
||||
|
Reference in New Issue
Block a user