mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 23:02:54 +08:00
34 lines
912 B
C#
34 lines
912 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Pooling;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Rulesets.Catch.UI
|
|
{
|
|
public class CatcherTrailSprite : PoolableDrawable
|
|
{
|
|
public CatcherAnimationState AnimationState
|
|
{
|
|
set => body.AnimationState.Value = value;
|
|
}
|
|
|
|
private readonly SkinnableCatcher body;
|
|
|
|
public CatcherTrailSprite()
|
|
{
|
|
Size = new Vector2(CatcherArea.CATCHER_SIZE);
|
|
Origin = Anchor.TopCentre;
|
|
Blending = BlendingParameters.Additive;
|
|
InternalChild = body = new SkinnableCatcher();
|
|
}
|
|
|
|
protected override void FreeAfterUse()
|
|
{
|
|
ClearTransforms();
|
|
base.FreeAfterUse();
|
|
}
|
|
}
|
|
}
|