mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Event -> virtual method
This commit is contained in:
@ -58,7 +58,11 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
|
||||
NewResult += onNewResult;
|
||||
RevertResult += onRevertResult;
|
||||
OnNewDrawableHitObject += d => ((DrawableCatchHitObject)d).CheckPosition = CheckIfWeCanCatch;
|
||||
}
|
||||
|
||||
protected override void OnNewDrawableHitObject(DrawableHitObject d)
|
||||
{
|
||||
((DrawableCatchHitObject)d).CheckPosition = CheckIfWeCanCatch;
|
||||
}
|
||||
|
||||
public bool CheckIfWeCanCatch(CatchHitObject obj) => CatcherArea.AttemptCatch(obj);
|
||||
|
Reference in New Issue
Block a user