Remove unnecessary private field

This commit is contained in:
Dean Herbert 2018-12-07 20:13:03 +09:00
parent d379d02761
commit 7d9cdf6f81
1 changed files with 2 additions and 3 deletions

View File

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