Refactor fruit dropping code

- The repeated `Remove` call was quadratic complexity.
  Now it is linear time.
This commit is contained in:
ekrctb
2020-12-02 21:23:34 +09:00
parent 873f2363c1
commit 2eb2c934cc
4 changed files with 65 additions and 64 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.Rulesets.Catch.Tests
[BackgroundDependencyLoader]
private void load()
{
SetContents(() => new Catcher(new Container())
SetContents(() => new Catcher(new Container(), new Container())
{
RelativePositionAxes = Axes.None,
Anchor = Anchor.Centre,