mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Reduce pollution in DrawableHitObject in favor of a loosely-coupled IScrollingHitObject.
This commit is contained in:
@ -82,7 +82,9 @@ namespace osu.Game.Rulesets.Timing
|
||||
|
||||
public override void Add(DrawableHitObject drawable)
|
||||
{
|
||||
drawable.LifetimeOffset.BindTo(VisibleTimeRange);
|
||||
var scrollingHitObject = drawable as IScrollingHitObject;
|
||||
scrollingHitObject?.LifetimeOffset.BindTo(VisibleTimeRange);
|
||||
|
||||
base.Add(drawable);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user