1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 05:56:42 +08:00

Override instead of re-binding event

This commit is contained in:
smoogipooo 2017-09-13 16:15:11 +09:00
parent 7b30fc8a09
commit 6682c3a736

View File

@ -49,10 +49,9 @@ namespace osu.Game.Rulesets.Catch.UI
var fruit = (DrawableFruit)h;
fruit.CheckPosition = catcherArea.CheckIfWeCanCatch;
fruit.OnJudgement += Fruit_OnJudgement;
}
private void Fruit_OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
public override void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)
{
if (judgement.IsHit)
{