1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Clear all transforms of catcher trail sprite before returned to pool

This commit is contained in:
ekrctb 2020-12-08 17:31:00 +09:00
parent 88db7823b2
commit 22a5df6309

View File

@ -30,5 +30,11 @@ namespace osu.Game.Rulesets.Catch.UI
// Sets the origin roughly to the centre of the catcher's plate to allow for correct scaling.
OriginPosition = new Vector2(0.5f, 0.06f) * CatcherArea.CATCHER_SIZE;
}
protected override void FreeAfterUse()
{
ClearTransforms();
base.FreeAfterUse();
}
}
}