mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 16:03:01 +08:00
Remove caught objects on revert result
This commit is contained in:
parent
100b365c98
commit
1a66d8f2bc
@ -241,7 +241,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
updateState(CatcherAnimationState.Fail);
|
||||
}
|
||||
|
||||
public void OnRevertResult(DrawableCatchHitObject fruit, JudgementResult result)
|
||||
public void OnRevertResult(DrawableCatchHitObject drawableObject, JudgementResult result)
|
||||
{
|
||||
var catchResult = (CatchJudgementResult)result;
|
||||
|
||||
@ -255,6 +255,9 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
else
|
||||
SetHyperDashState();
|
||||
}
|
||||
|
||||
caughtFruitContainer.RemoveAll(d => d.HitObject == drawableObject.HitObject);
|
||||
droppedObjectTarget.RemoveAll(d => (d as DrawableCatchHitObject)?.HitObject == drawableObject.HitObject);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user