Use hit object pooling for Droplet and TinyDroplet.

This commit is contained in:
ekrctb
2020-11-30 19:04:09 +09:00
parent 05aaa377e7
commit 94fd607a7c
4 changed files with 23 additions and 8 deletions

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
@ -56,6 +57,13 @@ namespace osu.Game.Rulesets.Catch.UI
};
}
[BackgroundDependencyLoader]
private void load()
{
RegisterPool<Droplet, DrawableDroplet>(1);
RegisterPool<TinyDroplet, DrawableTinyDroplet>(1);
}
protected override void LoadComplete()
{
base.LoadComplete();