mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Introduce IHasCatchObjectState implemented by DHO and CaughtObject
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user