mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
Smol fix for Wizard's Waltz
This commit is contained in:
parent
2eda6c0d45
commit
3adbc8a18d
1 changed files with 5 additions and 3 deletions
|
@ -38,9 +38,11 @@ namespace RhythmHeavenMania.Games.WizardsWaltz
|
|||
{
|
||||
List<float> starts = GameManager.instance.Beatmap.entities.FindAll(c => c.datamodel == "wizardsWaltz/start interval").Select(c => c.beat).ToList();
|
||||
|
||||
var nextInterval = starts.IndexOf(Mathp.GetClosestInList(starts, Conductor.instance.songPositionInBeats));
|
||||
wizardBeatOffset = starts[nextInterval];
|
||||
Debug.Log(wizardBeatOffset);
|
||||
if (starts.Count > 0)
|
||||
{
|
||||
var nextInterval = starts.IndexOf(Mathp.GetClosestInList(starts, Conductor.instance.songPositionInBeats));
|
||||
wizardBeatOffset = starts[nextInterval];
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
|
Loading…
Reference in a new issue