mirror of
https://github.com/osukey/osukey.git
synced 2025-05-01 11:47:18 +09:00
25 lines
757 B
C#
25 lines
757 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Rulesets.Catch.Judgements;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
|
{
|
|
public class DrawableBanana : DrawableFruit
|
|
{
|
|
public DrawableBanana(Banana h)
|
|
: base(h)
|
|
{
|
|
}
|
|
|
|
protected override void CheckForJudgements(bool userTriggered, double timeOffset)
|
|
{
|
|
if (CheckPosition == null) return;
|
|
|
|
if (timeOffset >= 0)
|
|
AddJudgement(new CatchBananaJudgement { Result = CheckPosition.Invoke(HitObject) ? HitResult.Perfect : HitResult.Miss });
|
|
}
|
|
}
|
|
}
|