mirror of https://github.com/ppy/osu
Make sMake spinner's EndTime correct on construction
This commit is contained in:
parent
71ba3e459b
commit
6297606baa
|
@ -13,8 +13,13 @@ namespace osu.Game.Rulesets.Osu.Objects
|
|||
{
|
||||
public class Spinner : OsuHitObject, IHasEndTime
|
||||
{
|
||||
public double EndTime { get; set; }
|
||||
public double Duration => EndTime - StartTime;
|
||||
public double EndTime
|
||||
{
|
||||
get => StartTime + Duration;
|
||||
set => Duration = value - StartTime;
|
||||
}
|
||||
|
||||
public double Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of spins required to finish the spinner without miss.
|
||||
|
|
Loading…
Reference in New Issue