Merge pull request #11126 from ekrctb/fix-catcher-trail-sprite-pooled

Clear all transforms of catcher trail sprite before returned to pool
This commit is contained in:
Dan Balasescu 2020-12-08 17:59:23 +09:00 committed by GitHub
commit c3241f163d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}
}
}