Fixed working dough and lockstep earrape bugs and tambourine interval bugs (#281)

* mr upbeat input fix + lockstep offbeat switch event seperation

* Lockstep + MrUpbeat animation fixes

* Fixes to lockstep, tambourine and wd
This commit is contained in:
Rapandrasmus
2023-02-15 22:40:20 +01:00
committed by GitHub
parent e213a7f900
commit 52c9474c90
3 changed files with 8 additions and 11 deletions

View File

@ -127,10 +127,7 @@ namespace HeavenStudio.Games
void OnDestroy()
{
if (!Conductor.instance.isPlaying || Conductor.instance.isPaused)
{
if (queuedInputs.Count > 0) queuedInputs.Clear();
}
if (queuedInputs.Count > 0) queuedInputs.Clear();
}
public void Update()
@ -236,7 +233,7 @@ namespace HeavenStudio.Games
{
if (GameManager.instance.currentGame == "lockstep")
{
for (int i = 0; i < length + 1; i++)
for (int i = 0; i < length; i++)
{
Lockstep.instance.ScheduleInput(beat - 1, 1 + i, InputType.STANDARD_DOWN, Lockstep.instance.Just, Lockstep.instance.Miss, Lockstep.instance.Nothing);
BeatAction.New(instance.gameObject, new List<BeatAction.Action>()
@ -247,7 +244,7 @@ namespace HeavenStudio.Games
}
else
{
for (int i = 0; i < length + 1; i++)
for (int i = 0; i < length; i++)
{
queuedInputs.Add(beat + i);
}