Fix incorrect usage of InternalChildren

Could cause overwriting of components added by base DrawableHitObjcet class (such as samples)
This commit is contained in:
Dean Herbert
2019-03-25 13:47:28 +09:00
parent c97116c91a
commit 39df8cce19
10 changed files with 22 additions and 28 deletions

View File

@ -170,12 +170,12 @@ namespace osu.Game.Tests.Visual.Gameplay
{
Origin = Anchor.Centre;
InternalChild = new Box
AddInternal(new Box
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both
};
});
switch (direction)
{
@ -205,7 +205,7 @@ namespace osu.Game.Tests.Visual.Gameplay
Origin = Anchor.Centre;
AutoSizeAxes = Axes.Both;
InternalChild = new Box { Size = new Vector2(75) };
AddInternal(new Box { Size = new Vector2(75) });
}
protected override void UpdateState(ArmedState state)