Move catcher state changing logic to OnNewResult method

This commit is contained in:
ekrctb
2020-12-08 14:28:30 +09:00
parent 88db7823b2
commit 0213f77b4b
5 changed files with 60 additions and 28 deletions

View File

@ -58,10 +58,9 @@ namespace osu.Game.Rulesets.Catch.Tests
Schedule(() =>
{
bool caught = area.AttemptCatch(fruit);
area.OnNewResult(drawable, new JudgementResult(fruit, new CatchJudgement())
{
Type = caught ? HitResult.Great : HitResult.Miss
Type = area.MovableCatcher.CanCatch(fruit) ? HitResult.Great : HitResult.Miss
});
drawable.Expire();