Implement hold note lighting

This commit is contained in:
smoogipoo
2020-08-26 20:21:56 +09:00
parent c0c67c11b1
commit 9372c6eef6
2 changed files with 112 additions and 15 deletions

View File

@ -159,7 +159,10 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
protected override void CheckForResult(bool userTriggered, double timeOffset)
{
if (Tail.AllJudged)
{
ApplyResult(r => r.Type = HitResult.Perfect);
endHold();
}
if (Tail.Result.Type == HitResult.Miss)
HasBroken = true;