More comments, new method to detect expected inputs

IsExpectingInputNow() detects wether the player is expected to input something at the closest InputEvent
This commit is contained in:
Pengu123
2022-05-04 20:37:52 +02:00
parent 6384d28295
commit 34e29efae8
2 changed files with 21 additions and 1 deletions

View File

@ -86,7 +86,13 @@ namespace HeavenStudio.Games
Blank();
}
}
}
}
public bool IsExpectingInputNow()
{
float normalizedBeat = Conductor.instance.GetPositionFromBeat(startBeat, timer);
return normalizedBeat > Minigame.EarlyTime() && normalizedBeat < Minigame.EndTime();
}
public bool IsCorrectInput()
{