Remove holding property in favor of a nullable hold start time.

This commit is contained in:
smoogipooo
2017-05-26 18:56:21 +09:00
parent e4b59314ea
commit f294fef29b
2 changed files with 8 additions and 28 deletions

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
/// <summary>
/// References the time at which the user started holding the hold note.
/// </summary>
public Func<double> HoldStartTime;
public Func<double?> HoldStartTime;
/// <summary>
/// References whether the user is currently holding the hold note.
@ -90,7 +90,6 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
if (Time.Current < HitObject.StartTime)
return;
if (HoldStartTime?.Invoke() > HitObject.StartTime)
return;