1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

Set start time on nested hitobjects

Dan Balasescu 2020-10-02 16:28:58 +09:00
parent 7f4385c5a0
commit 2c622ebef4

@ -165,10 +165,15 @@ public class MyHitObject : HitObject
// When applying a result, the same result will also be applied to the padding object (see below).
// This results in a 2x weighting for the "MyHitObject" type.
AddNested(new ScorePaddingObject());
AddNested(new ScorePaddingObject
{
// Remember to set a correct start time for nested hitobjects, otherwise their judgements won't be reset correctly!
// Judgements are only reset once time is rewound past the hitobject's start time.
StartTime = StartTime
});
// For a 3x weighting, add another one!
// AddNested(new ScorePaddingObject());
// AddNested(new ScorePaddingObject { StartTime = StartTime });
}
}