Remove unnecessary private field

This commit is contained in:
Dean Herbert 2018-12-07 20:13:03 +09:00
parent d379d02761
commit 7d9cdf6f81

View File

@ -68,11 +68,10 @@ namespace osu.Game.Rulesets.UI
/// </summary> /// </summary>
public Playfield Playfield => playfield.Value; public Playfield Playfield => playfield.Value;
private readonly Container overlays;
/// <summary> /// <summary>
/// Place to put drawables above hit objects but below UI. /// Place to put drawables above hit objects but below UI.
/// </summary> /// </summary>
public Container Overlays => overlays; public readonly Container Overlays;
/// <summary> /// <summary>
/// The cursor provided by this <see cref="RulesetContainer"/>. May be null if no cursor is provided. /// The cursor provided by this <see cref="RulesetContainer"/>. May be null if no cursor is provided.
@ -93,7 +92,7 @@ namespace osu.Game.Rulesets.UI
{ {
Ruleset = ruleset; Ruleset = ruleset;
playfield = new Lazy<Playfield>(CreatePlayfield); playfield = new Lazy<Playfield>(CreatePlayfield);
overlays = new Container Overlays = new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Width = 1, Width = 1,