Fix error-level inspections.

This commit is contained in:
Dean Herbert
2017-03-07 13:50:24 +09:00
parent 4430255ec4
commit 5cbcf7a20a
15 changed files with 6 additions and 25 deletions

View File

@ -5,7 +5,6 @@ using osu.Framework.Allocation;
using OpenTK;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Game.Modes.Objects;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Screens.Play;
@ -31,8 +30,6 @@ namespace osu.Game.Modes.UI
protected override Container<Drawable> Content { get; }
private Container content;
public Playfield()
{
AddInternal(scaledContent = new ScaledContainer
@ -40,7 +37,7 @@ namespace osu.Game.Modes.UI
RelativeSizeAxes = Axes.Both,
Children = new[]
{
content = new Container
Content = new Container
{
RelativeSizeAxes = Axes.Both,
}
@ -64,9 +61,9 @@ namespace osu.Game.Modes.UI
if (InputManager != null)
{
//if we've been provided an InputManager, we want it to sit inside the scaledcontainer
scaledContent.Remove(content);
scaledContent.Remove(Content);
scaledContent.Add(InputManager);
InputManager.Add(content);
InputManager.Add(Content);
}
}