Smol fix for Wizard's Waltz
This commit is contained in:
parent
f3032f2410
commit
688c594ef1
|
@ -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();
|
List<float> starts = GameManager.instance.Beatmap.entities.FindAll(c => c.datamodel == "wizardsWaltz/start interval").Select(c => c.beat).ToList();
|
||||||
|
|
||||||
|
if (starts.Count > 0)
|
||||||
|
{
|
||||||
var nextInterval = starts.IndexOf(Mathp.GetClosestInList(starts, Conductor.instance.songPositionInBeats));
|
var nextInterval = starts.IndexOf(Mathp.GetClosestInList(starts, Conductor.instance.songPositionInBeats));
|
||||||
wizardBeatOffset = starts[nextInterval];
|
wizardBeatOffset = starts[nextInterval];
|
||||||
Debug.Log(wizardBeatOffset);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
|
Loading…
Reference in New Issue