1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 17:10:12 +08:00

Defer virtual method to load().

This commit is contained in:
smoogipooo
2017-05-03 15:56:54 +09:00
Unverified
parent d21c3358b9
commit 06e014708a
+2 -2
View File
@@ -202,8 +202,6 @@ namespace osu.Game.Rulesets.UI
protected HitRenderer(WorkingBeatmap beatmap)
: base(beatmap)
{
KeyConversionInputManager.Add(Playfield = CreatePlayfield());
InputManager.Add(content = new Container
{
RelativeSizeAxes = Axes.Both,
@@ -216,6 +214,8 @@ namespace osu.Game.Rulesets.UI
[BackgroundDependencyLoader]
private void load()
{
KeyConversionInputManager.Add(Playfield = CreatePlayfield());
loadObjects();
if (InputManager?.ReplayInputHandler != null)