1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00
osu-lazer/osu.Game.Rulesets.Catch/UI/CatcherTrailSprite.cs

33 lines
860 B
C#
Raw Normal View History

// 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.
2020-12-07 17:12:55 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Pooling;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
2020-12-07 17:12:55 +08:00
public class CatcherTrailSprite : PoolableDrawable
{
public CatcherAnimationState AnimationState
{
set => body.AnimationState.Value = value;
2020-12-07 17:12:55 +08:00
}
private readonly SkinnableCatcher body;
2020-12-07 17:12:55 +08:00
public CatcherTrailSprite()
{
Size = new Vector2(CatcherArea.CATCHER_SIZE);
Origin = Anchor.TopCentre;
InternalChild = body = new SkinnableCatcher();
}
protected override void FreeAfterUse()
{
ClearTransforms();
base.FreeAfterUse();
}
}
}