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:
parent
7b30fc8a09
commit
6682c3a736
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user