Introduce IHasCatchObjectState implemented by DHO and CaughtObject

This commit is contained in:
ekrctb
2020-12-08 21:29:03 +09:00
parent c301223d8c
commit a32dac00dd
11 changed files with 70 additions and 86 deletions

View File

@ -215,7 +215,7 @@ namespace osu.Game.Rulesets.Catch.UI
catchResult.CatcherAnimationState = CurrentState;
catchResult.CatcherHyperDash = HyperDashing;
if (!(drawableObject is DrawablePalpableCatchHitObject palpableObject)) return;
if (!(drawableObject is DrawablePalpableHasCatchHitObject palpableObject)) return;
var hitObject = palpableObject.HitObject;
@ -450,7 +450,7 @@ namespace osu.Game.Rulesets.Catch.UI
updateCatcher();
}
private void placeCaughtObject(DrawablePalpableCatchHitObject drawableObject, Vector2 position)
private void placeCaughtObject(DrawablePalpableHasCatchHitObject drawableObject, Vector2 position)
{
var caughtObject = createCaughtObject(drawableObject.HitObject);
@ -458,6 +458,7 @@ namespace osu.Game.Rulesets.Catch.UI
caughtObject.CopyFrom(drawableObject);
caughtObject.Position = position;
caughtObject.Scale /= 2;
caughtFruitContainer.Add(caughtObject);